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