pub trait LCV1StateSignatureKey: StateSignatureKey {
// Required methods
fn sign_state(
private_key: &Self::StatePrivateKey,
light_client_state: &LightClientState,
) -> Result<Self::StateSignature, Self::SignError>;
fn verify_state_sig(
&self,
signature: &Self::StateSignature,
light_client_state: &LightClientState,
) -> bool;
}Expand description
Light client V1 signature key functions. The replicas only sign the light client state.
Required Methods§
Sourcefn sign_state(
private_key: &Self::StatePrivateKey,
light_client_state: &LightClientState,
) -> Result<Self::StateSignature, Self::SignError>
fn sign_state( private_key: &Self::StatePrivateKey, light_client_state: &LightClientState, ) -> Result<Self::StateSignature, Self::SignError>
Sign the state for legacy light client
Sourcefn verify_state_sig(
&self,
signature: &Self::StateSignature,
light_client_state: &LightClientState,
) -> bool
fn verify_state_sig( &self, signature: &Self::StateSignature, light_client_state: &LightClientState, ) -> bool
Verify the state signature for legacy light client
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".