()
| 12 | ) |
| 13 | |
| 14 | func 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 |
| 21 | func PubKeyToProto(k crypto.PubKey) (cryptoproto.PublicKey, error) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…