embedded_td/crypto/
mod.rs

1//! Cryptographic type of tendermint
2
3pub mod ed25519;
4
5pub mod sr25519;
6
7pub mod secp256k1;
8
9mod keypair;
10pub use keypair::*;
11
12macro_rules! define_as_ref_u8_array {
13    ($t:ty) => {
14        impl AsRef<[u8]> for $t {
15            fn as_ref(&self) -> &[u8] {
16                &self.0
17            }
18        }
19    };
20}
21
22pub(crate) use define_as_ref_u8_array;