laconicd-deprecated/third_party/proto/cosmos/crypto/ed25519/keys.proto

23 lines
737 B
Protocol Buffer
Raw Normal View History

2021-04-17 10:00:07 +00:00
syntax = "proto3";
package cosmos.crypto.ed25519;
import "gogoproto/gogo.proto";
option go_package = "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519";
// PubKey defines a ed25519 public key
2021-04-18 15:54:18 +00:00
// Key is the compressed form of the pubkey. The first byte depends is a 0x02 byte
// if the y-coordinate is the lexicographically largest of the two associated with
// the x-coordinate. Otherwise the first byte is a 0x03.
// This prefix is followed with the x-coordinate.
2021-04-17 10:00:07 +00:00
message PubKey {
option (gogoproto.goproto_stringer) = false;
2021-04-18 15:54:18 +00:00
bytes key = 1 [(gogoproto.casttype) = "crypto/ed25519.PublicKey"];
2021-04-17 10:00:07 +00:00
}
// PrivKey defines a ed25519 private key.
2021-04-18 15:54:18 +00:00
message PrivKey {
bytes key = 1 [(gogoproto.casttype) = "crypto/ed25519.PrivateKey"];
}