forge

package
v4.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 24, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddressExpression

func AddressExpression(address string) (string, error)

AddressExpression will pack and encode an address to a script_expr

func BytesExpression

func BytesExpression(v []byte) (string, error)

BytesExpression will pack and encode bytes to a script_expr

func Encode

func Encode(branch string, contents ...rpc.Content) (string, error)

Encode forges an operation locally. GoTezos does not use the RPC or a trusted source to forge operations. All operations are supported:

  • Endorsement
  • Proposals
  • Ballot
  • SeedNonceRevelation
  • DoubleEndorsementEvidence
  • DoubleBakingEvidence
  • ActivateAccount
  • Reveal
  • Transaction
  • Origination
  • Delegation

Parameters:

branch:
	The branch to forge the operation on.

contents:
	The operation contents to be formed.

func IntExpression

func IntExpression(i int) (string, error)

IntExpression will pack and encode an integer to a script_expr

func KeyHashExpression

func KeyHashExpression(hash string) (string, error)

KeyHashExpression will pack and encode a key hash to a script_expr

func MichelineExpression

func MichelineExpression(micheline string) (string, error)

MichelineExpression will pack and encode micheline to a script_expr

func NatExpression

func NatExpression(i int) (string, error)

NatExpression will pack and encode a nat to a script_expr

func StringExpression

func StringExpression(value string) (string, error)

StringExpression will pack and encode a string to a script_expr

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL