Documentation ¶
Index ¶
- func EncodeMultiPubKeyProgramInto(sink *common.ZeroCopySink, pubkeys []keypair.PublicKey, m int) error
- func EncodeParamProgramInto(sink *common.ZeroCopySink, sigs [][]byte)
- func EncodeSinglePubKeyProgramInto(sink *common.ZeroCopySink, pubkey keypair.PublicKey)
- func GetParamInfo(program []byte) ([][]byte, error)
- func ProgramFromMultiPubKey(pubkeys []keypair.PublicKey, m int) ([]byte, error)
- func ProgramFromParams(sigs [][]byte) []byte
- func ProgramFromPubKey(pubkey keypair.PublicKey) []byte
- type ProgramBuilder
- func (self *ProgramBuilder) Finish() []byte
- func (self *ProgramBuilder) PushBytes(data []byte) *ProgramBuilder
- func (self *ProgramBuilder) PushNum(num uint16) *ProgramBuilder
- func (self *ProgramBuilder) PushOpCode(op neovm.OpCode) *ProgramBuilder
- func (self *ProgramBuilder) PushPubKey(pubkey keypair.PublicKey) *ProgramBuilder
- type ProgramInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodeParamProgramInto ¶
func EncodeParamProgramInto(sink *common.ZeroCopySink, sigs [][]byte)
func EncodeSinglePubKeyProgramInto ¶
func EncodeSinglePubKeyProgramInto(sink *common.ZeroCopySink, pubkey keypair.PublicKey)
func GetParamInfo ¶
note output has reference of input `program`
func ProgramFromMultiPubKey ¶
func ProgramFromParams ¶
func ProgramFromPubKey ¶
Types ¶
type ProgramBuilder ¶
type ProgramBuilder struct {
// contains filtered or unexported fields
}
func NewProgramBuilder ¶
func NewProgramBuilder() ProgramBuilder
func (*ProgramBuilder) Finish ¶
func (self *ProgramBuilder) Finish() []byte
func (*ProgramBuilder) PushBytes ¶
func (self *ProgramBuilder) PushBytes(data []byte) *ProgramBuilder
func (*ProgramBuilder) PushNum ¶
func (self *ProgramBuilder) PushNum(num uint16) *ProgramBuilder
func (*ProgramBuilder) PushOpCode ¶
func (self *ProgramBuilder) PushOpCode(op neovm.OpCode) *ProgramBuilder
func (*ProgramBuilder) PushPubKey ¶
func (self *ProgramBuilder) PushPubKey(pubkey keypair.PublicKey) *ProgramBuilder
type ProgramInfo ¶
func GetProgramInfo ¶
func GetProgramInfo(program []byte) (ProgramInfo, error)
Click to show internal directories.
Click to hide internal directories.