Struct chain_crypto::algorithms::SumEd25519_12
source · pub struct SumEd25519_12;
Trait Implementations§
source§impl Arbitrary for SumEd25519_12
impl Arbitrary for SumEd25519_12
§type Parameters = ()
type Parameters = ()
The type of parameters that
arbitrary_with
accepts for configuration
of the generated Strategy
. Parameters must implement Default
.§type Strategy = BoxedStrategy<SumEd25519_12>
type Strategy = BoxedStrategy<SumEd25519_12>
The type of
Strategy
used to generate values of type Self
.source§fn arbitrary_with(args: <Self as Arbitrary>::Parameters) -> Self::Strategy
fn arbitrary_with(args: <Self as Arbitrary>::Parameters) -> Self::Strategy
source§impl AsymmetricKey for SumEd25519_12
impl AsymmetricKey for SumEd25519_12
type Secret = SecretKey
type PubAlg = SumEd25519_12
const SECRET_BECH32_HRP: &'static str = "kes25519-12-sk"
fn generate<T: RngCore + CryptoRng>(rng: T) -> Self::Secret
fn compute_public(key: &Self::Secret) -> PublicKey
fn secret_from_binary(data: &[u8]) -> Result<Self::Secret, SecretKeyError>
source§impl AsymmetricPublicKey for SumEd25519_12
impl AsymmetricPublicKey for SumEd25519_12
type Public = PublicKey
const PUBLIC_BECH32_HRP: &'static str = "kes25519-12-pk"
const PUBLIC_KEY_SIZE: usize = 32usize
fn public_from_binary(data: &[u8]) -> Result<Self::Public, PublicKeyError>
source§impl Debug for SumEd25519_12
impl Debug for SumEd25519_12
source§impl KeyEvolvingAlgorithm for SumEd25519_12
impl KeyEvolvingAlgorithm for SumEd25519_12
source§impl KeyEvolvingSignatureAlgorithm for SumEd25519_12
impl KeyEvolvingSignatureAlgorithm for SumEd25519_12
source§fn get_period(sig: &Self::Signature) -> u32
fn get_period(sig: &Self::Signature) -> u32
Get the period associated with this signature
source§impl SecretKeySizeStatic for SumEd25519_12
impl SecretKeySizeStatic for SumEd25519_12
const SECRET_KEY_SIZE: usize = 1_220usize
source§impl SigningAlgorithm for SumEd25519_12
impl SigningAlgorithm for SumEd25519_12
source§impl VerificationAlgorithm for SumEd25519_12
impl VerificationAlgorithm for SumEd25519_12
type Signature = Signature
const SIGNATURE_SIZE: usize = 484usize
const SIGNATURE_BECH32_HRP: &'static str = "kes25519-12-sig"
fn signature_from_bytes(data: &[u8]) -> Result<Self::Signature, SignatureError>
fn verify_bytes( pubkey: &Self::Public, signature: &Self::Signature, msg: &[u8] ) -> Verification
Auto Trait Implementations§
impl RefUnwindSafe for SumEd25519_12
impl Send for SumEd25519_12
impl Sync for SumEd25519_12
impl Unpin for SumEd25519_12
impl UnwindSafe for SumEd25519_12
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more