desmos_bindings/proto/cosmos/crypto/
ed25519.rs

1/// PubKey is an ed25519 public key for handling Tendermint keys in SDK.
2/// It's needed for Any serialization and SDK compatibility.
3/// It must not be used in a non Tendermint key context because it doesn't implement
4/// ADR-28. Nevertheless, you will like to use ed25519 in app user level
5/// then you must create a new proto message and follow ADR-28 for Address construction.
6#[allow(clippy::derive_partial_eq_without_eq)]
7#[derive(
8    Clone,
9    PartialEq,
10    ::prost::Message,
11    schemars::JsonSchema,
12    serde::Serialize,
13    serde::Deserialize,
14    desmos_std_derive::CosmwasmExt,
15)]
16#[proto_message(type_url = "/cosmos.crypto.ed25519.PubKey")]
17#[serde(rename_all = "snake_case")]
18pub struct PubKey {
19    #[prost(bytes = "vec", tag = "1")]
20    #[serde(
21        serialize_with = "crate::serde::as_base64::serialize",
22        deserialize_with = "crate::serde::as_base64::deserialize"
23    )]
24    pub key: ::prost::alloc::vec::Vec<u8>,
25}
26/// Deprecated: PrivKey defines a ed25519 private key.
27/// NOTE: ed25519 keys must not be used in SDK apps except in a tendermint validator context.
28#[allow(clippy::derive_partial_eq_without_eq)]
29#[derive(
30    Clone,
31    PartialEq,
32    ::prost::Message,
33    schemars::JsonSchema,
34    serde::Serialize,
35    serde::Deserialize,
36    desmos_std_derive::CosmwasmExt,
37)]
38#[proto_message(type_url = "/cosmos.crypto.ed25519.PrivKey")]
39#[serde(rename_all = "snake_case")]
40pub struct PrivKey {
41    #[prost(bytes = "vec", tag = "1")]
42    #[serde(
43        serialize_with = "crate::serde::as_base64::serialize",
44        deserialize_with = "crate::serde::as_base64::deserialize"
45    )]
46    pub key: ::prost::alloc::vec::Vec<u8>,
47}