pub trait StaticKeyPairWrapper {
type PkWrapper: PkWrapper;
type KeyGen: StaticKeyPair;
// Required methods
fn pk_from_inner(
inner: <<Self as StaticKeyPairWrapper>::KeyGen as StaticKeyPair>::PublicKey,
id: String,
) -> Self::PkWrapper;
fn pk_inner_to_pem(
inner: &<<Self as StaticKeyPairWrapper>::KeyGen as StaticKeyPair>::PublicKey,
) -> Result<String, SdkUtilError>;
}Required Associated Types§
Required Methods§
fn pk_from_inner( inner: <<Self as StaticKeyPairWrapper>::KeyGen as StaticKeyPair>::PublicKey, id: String, ) -> Self::PkWrapper
fn pk_inner_to_pem( inner: &<<Self as StaticKeyPairWrapper>::KeyGen as StaticKeyPair>::PublicKey, ) -> Result<String, SdkUtilError>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.