//! Helpers to use cryptographic data types in nettext pub use dryoc::*; use dryoc::types::{Bytes, StackByteArray}; use crate::enc; pub type SigningKeyPair = sign::SigningKeyPair; impl enc::Encode for StackByteArray { fn term(&self) -> enc::Result<'_> { Ok(enc::bytes(self.as_slice())) } } impl enc::Encode for sign::SigningKeyPair { fn term(&self) -> enc::Result<'_> { Ok(enc::bytes(self.secret_key.as_slice())) } }