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

Function ProgramFromPubKey

core/program/program.go:91–95  ·  view source on GitHub ↗
(pubkey keypair.PublicKey)

Source from the content-addressed store, hash-verified

89}
90
91func ProgramFromPubKey(pubkey keypair.PublicKey) []byte {
92 sink := common.ZeroCopySink{}
93 EncodeSinglePubKeyProgramInto(&sink, pubkey)
94 return sink.Bytes()
95}
96
97func EncodeSinglePubKeyProgramInto(sink *common.ZeroCopySink, pubkey keypair.PublicKey) {
98 builder := ProgramBuilder{sink: sink}

Callers 2

GetRawSigMethod · 0.92
AddressFromPubKeyFunction · 0.92

Calls 2

BytesMethod · 0.95

Tested by

no test coverage detected