provwasm_std/types/cosmos/crypto/
secp256r1.rs

1use provwasm_proc_macro::CosmwasmExt;
2/// PubKey defines a secp256r1 ECDSA public key.
3#[allow(clippy::derive_partial_eq_without_eq)]
4#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
5#[proto_message(type_url = "/cosmos.crypto.secp256r1.PubKey")]
6pub struct PubKey {
7    /// Point on secp256r1 curve in a compressed representation as specified in section
8    /// 4.3.6 of ANSI X9.62: <https://webstore.ansi.org/standards/ascx9/ansix9621998>
9    #[prost(bytes = "vec", tag = "1")]
10    pub key: ::prost::alloc::vec::Vec<u8>,
11}
12/// PrivKey defines a secp256r1 ECDSA private key.
13#[allow(clippy::derive_partial_eq_without_eq)]
14#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
15#[proto_message(type_url = "/cosmos.crypto.secp256r1.PrivKey")]
16pub struct PrivKey {
17    /// secret number serialized using big-endian encoding
18    #[prost(bytes = "vec", tag = "1")]
19    pub secret: ::prost::alloc::vec::Vec<u8>,
20}