pub enum MultisigMemberPublicKey {
Ed25519(Ed25519PublicKey),
Secp256k1(Secp256k1PublicKey),
Secp256r1(Secp256r1PublicKey),
ZkLogin(ZkLoginPublicIdentifier),
}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§
Ed25519(Ed25519PublicKey)
Secp256k1(Secp256k1PublicKey)
Secp256r1(Secp256r1PublicKey)
ZkLogin(ZkLoginPublicIdentifier)
Implementations§
Source§impl MultisigMemberPublicKey
impl MultisigMemberPublicKey
pub fn is_ed25519(&self) -> bool
pub fn as_ed25519(&self) -> &Ed25519PublicKey
pub fn as_ed25519_opt(&self) -> Option<&Ed25519PublicKey>
pub fn into_ed25519_opt(self) -> Option<Ed25519PublicKey>
pub fn into_ed25519(self) -> Ed25519PublicKey
pub fn is_secp256k1(&self) -> bool
pub fn as_secp256k1(&self) -> &Secp256k1PublicKey
pub fn as_secp256k1_opt(&self) -> Option<&Secp256k1PublicKey>
pub fn into_secp256k1_opt(self) -> Option<Secp256k1PublicKey>
pub fn into_secp256k1(self) -> Secp256k1PublicKey
pub fn is_secp256r1(&self) -> bool
pub fn as_secp256r1(&self) -> &Secp256r1PublicKey
pub fn as_secp256r1_opt(&self) -> Option<&Secp256r1PublicKey>
pub fn into_secp256r1_opt(self) -> Option<Secp256r1PublicKey>
pub fn into_secp256r1(self) -> Secp256r1PublicKey
pub fn is_zklogin(&self) -> bool
pub fn as_zklogin(&self) -> &ZkLoginPublicIdentifier
pub fn as_zklogin_opt(&self) -> Option<&ZkLoginPublicIdentifier>
pub fn into_zklogin_opt(self) -> Option<ZkLoginPublicIdentifier>
pub fn into_zklogin(self) -> ZkLoginPublicIdentifier
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 JsonSchema for MultisigMemberPublicKey
Available on crate feature serde only.
impl JsonSchema for MultisigMemberPublicKey
Available on crate feature
serde only.Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§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§
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