#[repr(u8)]pub enum SignatureScheme {
Ed25519 = 0,
Secp256k1 = 1,
Secp256r1 = 2,
Multisig = 3,
Bls12381 = 4,
ZkLogin = 5,
Passkey = 6,
}Expand description
Flag use to disambiguate the signature schemes supported by IOTA.
§BCS
The BCS serialized form for this type is defined by the following ABNF:
signature-scheme = ed25519-flag / secp256k1-flag / secp256r1-flag /
multisig-flag / bls-flag / zklogin-flag / passkey-flag
ed25519-flag = %x00
secp256k1-flag = %x01
secp256r1-flag = %x02
multisig-flag = %x03
bls-flag = %x04
zklogin-flag = %x05
passkey-flag = %x06Variants§
Implementations§
Source§impl SignatureScheme
impl SignatureScheme
pub fn is_ed25519(&self) -> bool
pub fn is_secp256k1(&self) -> bool
pub fn is_secp256r1(&self) -> bool
pub fn is_multisig(&self) -> bool
pub fn is_bls12381(&self) -> bool
pub fn is_zk_login(&self) -> bool
pub fn is_passkey(&self) -> bool
Sourcepub fn from_byte(flag: u8) -> Result<Self, InvalidSignatureScheme>
pub fn from_byte(flag: u8) -> Result<Self, InvalidSignatureScheme>
Try constructing from a byte flag
Trait Implementations§
Source§impl Arbitrary for SignatureScheme
impl Arbitrary for SignatureScheme
Source§type Parameters = ()
type Parameters = ()
The type of parameters that
arbitrary_with accepts for configuration
of the generated Strategy. Parameters must implement Default.Source§type Strategy = BoxedStrategy<SignatureScheme>
type Strategy = BoxedStrategy<SignatureScheme>
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 Clone for SignatureScheme
impl Clone for SignatureScheme
Source§fn clone(&self) -> SignatureScheme
fn clone(&self) -> SignatureScheme
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SignatureScheme
impl Debug for SignatureScheme
Source§impl Display for SignatureScheme
impl Display for SignatureScheme
Source§impl Hash for SignatureScheme
impl Hash for SignatureScheme
Source§impl Ord for SignatureScheme
impl Ord for SignatureScheme
Source§fn cmp(&self, other: &SignatureScheme) -> Ordering
fn cmp(&self, other: &SignatureScheme) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SignatureScheme
impl PartialEq for SignatureScheme
Source§impl PartialOrd for SignatureScheme
impl PartialOrd for SignatureScheme
impl Copy for SignatureScheme
impl Eq for SignatureScheme
impl StructuralPartialEq for SignatureScheme
Auto Trait Implementations§
impl Freeze for SignatureScheme
impl RefUnwindSafe for SignatureScheme
impl Send for SignatureScheme
impl Sync for SignatureScheme
impl Unpin for SignatureScheme
impl UnwindSafe for SignatureScheme
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more