pub trait StateSignatureKey:
Send
+ Sync
+ Clone
+ Sized
+ Debug
+ Hash
+ Serialize
+ for<'a> Deserialize<'a>
+ PartialEq
+ Eq
+ Display
+ Default
+ ToFieldsLightClientCompat
+ for<'a> TryFrom<&'a TaggedBase64>
+ Into<TaggedBase64> {
type StatePrivateKey: PrivateSignatureKey;
type StateSignature: Send + Sync + Sized + Clone + Debug + Eq + Serialize + for<'a> Deserialize<'a> + Hash;
type SignError: Error + Send + Sync;
// Required method
fn generated_from_seed_indexed(
seed: [u8; 32],
index: u64,
) -> (Self, Self::StatePrivateKey);
}
Expand description
Light client state signature key with minimal requirements
Required Associated Types§
Sourcetype StatePrivateKey: PrivateSignatureKey
type StatePrivateKey: PrivateSignatureKey
The private key type
Required Methods§
Sourcefn generated_from_seed_indexed(
seed: [u8; 32],
index: u64,
) -> (Self, Self::StatePrivateKey)
fn generated_from_seed_indexed( seed: [u8; 32], index: u64, ) -> (Self, Self::StatePrivateKey)
Generate a new key pair
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.