#[non_exhaustive]pub enum MultisigMemberPublicKey {
Ed25519(Ed25519PublicKey),
Secp256k1(Secp256k1PublicKey),
Secp256r1(Secp256r1PublicKey),
ZkLogin(ZkLoginPublicIdentifier),
Passkey(PasskeyPublicKey),
}Expand description
Enum of valid public keys for multisig committee members
§BCS
The BCS serialized form for this type is defined by the following ABNF:
multisig-member-public-key = ed25519-multisig-member-public-key /
secp256k1-multisig-member-public-key /
secp256r1-multisig-member-public-key /
zklogin-multisig-member-public-key
ed25519-multisig-member-public-key = %x00 ed25519-public-key
secp256k1-multisig-member-public-key = %x01 secp256k1-public-key
secp256r1-multisig-member-public-key = %x02 secp256r1-public-key
zklogin-multisig-member-public-key = %x03 zklogin-public-identifierThere is also a legacy encoding for this type defined as:
legacy-multisig-member-public-key = string ; which is valid base64 encoded
; and the decoded bytes are defined
; by legacy-public-key
legacy-public-key = (ed25519-flag ed25519-public-key) /
(secp256k1-flag secp256k1-public-key) /
(secp256r1-flag secp256r1-public-key)Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Ed25519(Ed25519PublicKey)
Secp256k1(Secp256k1PublicKey)
Secp256r1(Secp256r1PublicKey)
ZkLogin(ZkLoginPublicIdentifier)
Passkey(PasskeyPublicKey)
Trait Implementations§
Source§impl Arbitrary for MultisigMemberPublicKey
impl Arbitrary for MultisigMemberPublicKey
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<MultisigMemberPublicKey>
type Strategy = BoxedStrategy<MultisigMemberPublicKey>
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 MultisigMemberPublicKey
impl Clone for MultisigMemberPublicKey
Source§fn clone(&self) -> MultisigMemberPublicKey
fn clone(&self) -> MultisigMemberPublicKey
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 MultisigMemberPublicKey
impl Debug for MultisigMemberPublicKey
Source§impl<'de> Deserialize<'de> for MultisigMemberPublicKey
Available on crate feature serde only.
impl<'de> Deserialize<'de> for MultisigMemberPublicKey
Available on crate feature
serde only.Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MultisigMemberPublicKey
impl PartialEq for MultisigMemberPublicKey
Source§impl Serialize for MultisigMemberPublicKey
Available on crate feature serde only.
impl Serialize for MultisigMemberPublicKey
Available on crate feature
serde only.impl Eq for MultisigMemberPublicKey
impl StructuralPartialEq for MultisigMemberPublicKey
Auto Trait Implementations§
impl Freeze for MultisigMemberPublicKey
impl RefUnwindSafe for MultisigMemberPublicKey
impl Send for MultisigMemberPublicKey
impl Sync for MultisigMemberPublicKey
impl Unpin for MultisigMemberPublicKey
impl UnwindSafe for MultisigMemberPublicKey
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
Casts
self to type T. The semantics of numeric casting with the as operator are followed, so <T as As>::as_::<U> can be used in the same way as T as U for numeric conversions. Read moreSource§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