MCPcopy Create free account
hub / github.com/DNAProject/DNA / EncodeSinglePubKeyProgramInto

Function EncodeSinglePubKeyProgramInto

core/program/program.go:97–101  ·  view source on GitHub ↗
(sink *common.ZeroCopySink, pubkey keypair.PublicKey)

Source from the content-addressed store, hash-verified

95}
96
97func EncodeSinglePubKeyProgramInto(sink *common.ZeroCopySink, pubkey keypair.PublicKey) {
98 builder := ProgramBuilder{sink: sink}
99
100 builder.PushPubKey(pubkey).PushOpCode(neovm.CHECKSIG)
101}
102
103func EncodeMultiPubKeyProgramInto(sink *common.ZeroCopySink, pubkeys []keypair.PublicKey, m int) error {
104 n := len(pubkeys)

Callers 2

SerializationMethod · 0.92
ProgramFromPubKeyFunction · 0.85

Calls 2

PushPubKeyMethod · 0.95
PushOpCodeMethod · 0.80

Tested by

no test coverage detected