github.com/Finschia/finschia-sdk@v0.49.1/proto/cosmos/crypto/secp256k1/keys.proto (about)

     1  syntax = "proto3";
     2  package cosmos.crypto.secp256k1;
     3  
     4  import "gogoproto/gogo.proto";
     5  
     6  option go_package = "github.com/Finschia/finschia-sdk/crypto/keys/secp256k1";
     7  
     8  // PubKey defines a secp256k1 public key
     9  // Key is the compressed form of the pubkey. The first byte depends is a 0x02 byte
    10  // if the y-coordinate is the lexicographically largest of the two associated with
    11  // the x-coordinate. Otherwise the first byte is a 0x03.
    12  // This prefix is followed with the x-coordinate.
    13  message PubKey {
    14    option (gogoproto.goproto_stringer) = false;
    15  
    16    bytes key = 1;
    17  }
    18  
    19  // PrivKey defines a secp256k1 private key.
    20  message PrivKey {
    21    bytes key = 1;
    22  }