Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateMultiSigRedeemScript

func CreateMultiSigRedeemScript(m int, publicKeys keys.PublicKeys) ([]byte, error)

    CreateMultiSigRedeemScript creates a script runnable by the VM.

    Types

    type ContextItem

    type ContextItem struct {
    	Script     util.Uint160
    	Parameters []Parameter
    	Signatures []Signature
    }

      ContextItem represents a transaction context item.

      type ParamType

      type ParamType byte

        ParamType represents the Type of the contract parameter.

        const (
        	SignatureType ParamType = iota
        	BoolType
        	IntegerType
        	Hash160Type
        	Hash256Type
        	ByteArrayType
        	PublicKeyType
        	StringType
        	ArrayType
        )

          A list of supported smart contract parameter types.

          func (*ParamType) DecodeBinary

          func (pt *ParamType) DecodeBinary(r *io.BinReader)

            DecodeBinary implements io.Serializable interface.

            func (ParamType) EncodeBinary

            func (pt ParamType) EncodeBinary(w *io.BinWriter)

              EncodeBinary implements io.Serializable interface.

              func (ParamType) MarshalJSON

              func (pt ParamType) MarshalJSON() ([]byte, error)

                MarshalJSON implements the json.Marshaler interface.

                func (ParamType) String

                func (pt ParamType) String() string

                func (*ParamType) UnmarshalJSON

                func (pt *ParamType) UnmarshalJSON(data []byte) error

                  UnmarshalJSON implements json.Unmarshaler interface.

                  type Parameter

                  type Parameter struct {
                  	// Type of the parameter.
                  	Type ParamType `json:"type"`
                  	// The actual value of the parameter.
                  	Value interface{} `json:"value"`
                  }

                    Parameter represents a smart contract parameter.

                    func NewParameter

                    func NewParameter(t ParamType) Parameter

                      NewParameter returns a Parameter with proper initialized Value of the given ParamType.

                      func NewParameterFromString

                      func NewParameterFromString(in string) (*Parameter, error)

                        NewParameterFromString returns a new Parameter initialized from the given string in neo-go-specific format. It is intended to be used in user-facing interfaces and has some heuristics in it to simplify parameter passing. Exact syntax is documented in the cli documentation.

                        type ParameterContext

                        type ParameterContext struct{}

                          ParameterContext holds the parameter context.

                          type PropertyState

                          type PropertyState byte

                            PropertyState represents contract properties (flags).

                            const (
                            	HasStorage PropertyState = 1 << iota
                            	HasDynamicInvoke
                            	IsPayable
                            	NoProperties = 0
                            )

                              List of supported properties.

                              type Signature

                              type Signature struct {
                              	Data      []byte
                              	PublicKey []byte
                              }

                                Signature represents a transaction signature.

                                Directories

                                Path Synopsis