Trait iota_types::crypto::IotaSignature
source · pub trait IotaSignature: Sized + ToFromBytes {
// Required methods
fn signature_bytes(&self) -> &[u8] ⓘ;
fn public_key_bytes(&self) -> &[u8] ⓘ;
fn scheme(&self) -> SignatureScheme;
fn verify_secure<T>(
&self,
value: &IntentMessage<T>,
author: IotaAddress,
scheme: SignatureScheme,
) -> IotaResult<()>
where T: Serialize;
}
Required Methods§
fn signature_bytes(&self) -> &[u8] ⓘ
fn public_key_bytes(&self) -> &[u8] ⓘ
fn scheme(&self) -> SignatureScheme
fn verify_secure<T>(
&self,
value: &IntentMessage<T>,
author: IotaAddress,
scheme: SignatureScheme,
) -> IotaResult<()>where
T: Serialize,
Object Safety§
This trait is not object safe.