MCPcopy Create free account
hub / github.com/tendermint/tendermint / init

Function init

crypto/encoding/codec.go:14–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12)
13
14func init() {
15 json.RegisterType((*cryptoproto.PublicKey)(nil), "tendermint.crypto.PublicKey")
16 json.RegisterType((*cryptoproto.PublicKey_Ed25519)(nil), "tendermint.crypto.PublicKey_Ed25519")
17 json.RegisterType((*cryptoproto.PublicKey_Secp256K1)(nil), "tendermint.crypto.PublicKey_Secp256K1")
18}
19
20// PubKeyToProto takes crypto.PubKey and transforms it to a protobuf Pubkey
21func PubKeyToProto(k crypto.PubKey) (cryptoproto.PublicKey, error) {

Callers

nothing calls this directly

Calls 1

RegisterTypeFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…