juno_rust_proto/prost/cosmos-sdk/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(Clone, PartialEq, ::prost::Message)]
8pub struct PubKey {
9 #[prost(bytes = "vec", tag = "1")]
10 pub key: ::prost::alloc::vec::Vec<u8>,
11}
12/// Deprecated: PrivKey defines a ed25519 private key.
13/// NOTE: ed25519 keys must not be used in SDK apps except in a tendermint validator context.
14#[allow(clippy::derive_partial_eq_without_eq)]
15#[derive(Clone, PartialEq, ::prost::Message)]
16pub struct PrivKey {
17 #[prost(bytes = "vec", tag = "1")]
18 pub key: ::prost::alloc::vec::Vec<u8>,
19}