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

Method ReadPubKey

core/program/program.go:252–260  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

250}
251
252func (self *programParser) ReadPubKey() (keypair.PublicKey, error) {
253 buf, err := self.ReadBytes()
254 if err != nil {
255 return nil, err
256 }
257
258 pubkey, err := keypair.DeserializePublicKey(buf)
259 return pubkey, err
260}
261
262func GetProgramInfo(program []byte) (ProgramInfo, error) {
263 info := ProgramInfo{}

Callers 1

GetProgramInfoFunction · 0.95

Calls 1

ReadBytesMethod · 0.95

Tested by

no test coverage detected