Trait iota_types::crypto::IotaSignatureInner
source · pub trait IotaSignatureInner: Sized + ToFromBytes + PartialEq + Eq + Hash {
type Sig: Authenticator<PubKey = Self::PubKey>;
type PubKey: VerifyingKey<Sig = Self::Sig> + IotaPublicKey;
type KeyPair: KeypairTraits<PubKey = Self::PubKey, Sig = Self::Sig>;
const LENGTH: usize = _;
const SCHEME: SignatureScheme = <Self::PubKey>::SIGNATURE_SCHEME;
// Provided methods
fn get_verification_inputs(&self) -> IotaResult<(Self::Sig, Self::PubKey)> { ... }
fn new(kp: &Self::KeyPair, message: &[u8]) -> Self { ... }
}
Required Associated Types§
type Sig: Authenticator<PubKey = Self::PubKey>
type PubKey: VerifyingKey<Sig = Self::Sig> + IotaPublicKey
type KeyPair: KeypairTraits<PubKey = Self::PubKey, Sig = Self::Sig>
Provided Associated Constants§
Provided Methods§
sourcefn get_verification_inputs(&self) -> IotaResult<(Self::Sig, Self::PubKey)>
fn get_verification_inputs(&self) -> IotaResult<(Self::Sig, Self::PubKey)>
Returns the deserialized signature and deserialized pubkey.
fn new(kp: &Self::KeyPair, message: &[u8]) -> Self
Object Safety§
This trait is not object safe.