github.com/Finschia/finschia-sdk@v0.49.1/proto/cosmos/crypto/ed25519/keys.proto (about) 1 syntax = "proto3"; 2 package cosmos.crypto.ed25519; 3 4 import "gogoproto/gogo.proto"; 5 6 option go_package = "github.com/Finschia/finschia-sdk/crypto/keys/ed25519"; 7 8 // PubKey is an ed25519 public key for handling Tendermint keys in SDK. 9 // It's needed for Any serialization and SDK compatibility. 10 // It must not be used in a non Tendermint key context because it doesn't implement 11 // ADR-28. Nevertheless, you will like to use ed25519 in app user level 12 // then you must create a new proto message and follow ADR-28 for Address construction. 13 message PubKey { 14 option (gogoproto.goproto_stringer) = false; 15 16 bytes key = 1 [(gogoproto.casttype) = "crypto/ed25519.PublicKey"]; 17 } 18 19 // Deprecated: PrivKey defines a ed25519 private key. 20 // NOTE: ed25519 keys must not be used in SDK apps except in a tendermint validator context. 21 message PrivKey { 22 bytes key = 1 [(gogoproto.casttype) = "crypto/ed25519.PrivateKey"]; 23 }