program

package
v1.0.3-rc Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2018 License: LGPL-3.0 Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncodeMultiPubKeyProgramInto added in v1.0.3

func EncodeMultiPubKeyProgramInto(sink *common.ZeroCopySink, pubkeys []keypair.PublicKey, m int) error

func EncodeParamProgramInto added in v1.0.3

func EncodeParamProgramInto(sink *common.ZeroCopySink, sigs [][]byte)

func EncodeSinglePubKeyProgramInto added in v1.0.3

func EncodeSinglePubKeyProgramInto(sink *common.ZeroCopySink, pubkey keypair.PublicKey)

func GetParamInfo

func GetParamInfo(program []byte) ([][]byte, error)

note output has reference of input `program`

func ProgramFromMultiPubKey

func ProgramFromMultiPubKey(pubkeys []keypair.PublicKey, m int) ([]byte, error)

func ProgramFromParams

func ProgramFromParams(sigs [][]byte) []byte

func ProgramFromPubKey

func ProgramFromPubKey(pubkey keypair.PublicKey) []byte

Types

type ProgramBuilder

type ProgramBuilder struct {
	// contains filtered or unexported fields
}

func NewProgramBuilder added in v1.0.3

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

type ProgramInfo struct {
	PubKeys []keypair.PublicKey
	M       uint16
}

func GetProgramInfo

func GetProgramInfo(program []byte) (ProgramInfo, error)

Jump to

Keyboard shortcuts

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