{"modulePath":"github.com/polynetwork/poly","version":"v1.8.0","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package program\n\n## Functions\n\n```go\nfunc EncodeMultiPubKeyProgramInto(sink *common.ZeroCopySink, pubkeys []keypair.PublicKey, m int) error\n```\n\n```go\nfunc EncodeParamProgramInto(sink *common.ZeroCopySink, sigs [][]byte)\n```\n\n```go\nfunc EncodeSinglePubKeyProgramInto(sink *common.ZeroCopySink, pubkey keypair.PublicKey)\n```\n\n```go\nfunc GetParamInfo(program []byte) ([][]byte, error)\n```\nnote output has reference of input \\`program\\`\n\n```go\nfunc ProgramFromMultiPubKey(pubkeys []keypair.PublicKey, m int) ([]byte, error)\n```\n\n```go\nfunc ProgramFromParams(sigs [][]byte) []byte\n```\n\n```go\nfunc ProgramFromPubKey(pubkey keypair.PublicKey) []byte\n```\n\n## Types\n\n```go\ntype ProgramBuilder struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewProgramBuilder() ProgramBuilder\n```\n\n```go\nfunc (self *ProgramBuilder) Finish() []byte\n```\n\n```go\nfunc (self *ProgramBuilder) PushBytes(data []byte) *ProgramBuilder\n```\n\n```go\nfunc (self *ProgramBuilder) PushNum(num uint16) *ProgramBuilder\n```\n\n```go\nfunc (self *ProgramBuilder) PushOpCode(op neovm.OpCode) *ProgramBuilder\n```\n\n```go\nfunc (self *ProgramBuilder) PushPubKey(pubkey keypair.PublicKey) *ProgramBuilder\n```\n\n```go\ntype ProgramInfo struct {\n\tPubKeys []keypair.PublicKey\n\tM       uint16\n}\n```\n\n```go\nfunc GetProgramInfo(program []byte) (ProgramInfo, error)\n```\n\n","path":"github.com/polynetwork/poly/core/program","name":"program","synopsis":"","isRedistributable":true}
