mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-11-10 18:15:19 +00:00
75dec0d79c
* sync all third party proto definitions * update cosmos swagger for new imported third party protos
23 lines
640 B
Protocol Buffer
23 lines
640 B
Protocol Buffer
syntax = "proto3";
|
|
package cosmos.crypto.secp256k1;
|
|
|
|
import "gogoproto/gogo.proto";
|
|
|
|
option go_package = "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1";
|
|
|
|
// PubKey defines a secp256k1 public key
|
|
// 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.
|
|
message PubKey {
|
|
option (gogoproto.goproto_stringer) = false;
|
|
|
|
bytes key = 1;
|
|
}
|
|
|
|
// PrivKey defines a secp256k1 private key.
|
|
message PrivKey {
|
|
bytes key = 1;
|
|
}
|