pub enum MultisigMemberSignature {
Ed25519(Ed25519Signature),
Secp256k1(Secp256k1Signature),
Secp256r1(Secp256r1Signature),
ZkLogin(Box<ZkLoginAuthenticator>),
}Expand description
A signature from a member of a multisig committee.
§BCS
The BCS serialized form for this type is defined by the following ABNF:
multisig-member-signature = ed25519-multisig-member-signature /
secp256k1-multisig-member-signature /
secp256r1-multisig-member-signature /
zklogin-multisig-member-signature
ed25519-multisig-member-signature = %x00 ed25519-signature
secp256k1-multisig-member-signature = %x01 secp256k1-signature
secp256r1-multisig-member-signature = %x02 secp256r1-signature
zklogin-multisig-member-signature = %x03 zklogin-authenticatorVariants§
Ed25519(Ed25519Signature)
Secp256k1(Secp256k1Signature)
Secp256r1(Secp256r1Signature)
ZkLogin(Box<ZkLoginAuthenticator>)
Implementations§
Source§impl MultisigMemberSignature
impl MultisigMemberSignature
pub fn is_ed25519(&self) -> bool
pub fn as_ed25519(&self) -> &Ed25519Signature
pub fn as_ed25519_opt(&self) -> Option<&Ed25519Signature>
pub fn into_ed25519_opt(self) -> Option<Ed25519Signature>
pub fn into_ed25519(self) -> Ed25519Signature
pub fn is_secp256k1(&self) -> bool
pub fn as_secp256k1(&self) -> &Secp256k1Signature
pub fn as_secp256k1_opt(&self) -> Option<&Secp256k1Signature>
pub fn into_secp256k1_opt(self) -> Option<Secp256k1Signature>
pub fn into_secp256k1(self) -> Secp256k1Signature
pub fn is_secp256r1(&self) -> bool
pub fn as_secp256r1(&self) -> &Secp256r1Signature
pub fn as_secp256r1_opt(&self) -> Option<&Secp256r1Signature>
pub fn into_secp256r1_opt(self) -> Option<Secp256r1Signature>
pub fn into_secp256r1(self) -> Secp256r1Signature
pub fn is_zklogin(&self) -> bool
pub fn as_zklogin(&self) -> &ZkLoginAuthenticator
pub fn as_zklogin_opt(&self) -> Option<&ZkLoginAuthenticator>
pub fn into_zklogin_opt(self) -> Option<ZkLoginAuthenticator>
pub fn into_zklogin(self) -> ZkLoginAuthenticator
Trait Implementations§
Source§impl Arbitrary for MultisigMemberSignature
impl Arbitrary for MultisigMemberSignature
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<MultisigMemberSignature>
type Strategy = BoxedStrategy<MultisigMemberSignature>
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 MultisigMemberSignature
impl Clone for MultisigMemberSignature
Source§fn clone(&self) -> MultisigMemberSignature
fn clone(&self) -> MultisigMemberSignature
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 MultisigMemberSignature
impl Debug for MultisigMemberSignature
Source§impl<'de> Deserialize<'de> for MultisigMemberSignature
Available on crate feature serde only.
impl<'de> Deserialize<'de> for MultisigMemberSignature
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 MultisigMemberSignature
Available on crate feature serde only.
impl JsonSchema for MultisigMemberSignature
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 MultisigMemberSignature
impl PartialEq for MultisigMemberSignature
Source§impl Serialize for MultisigMemberSignature
Available on crate feature serde only.
impl Serialize for MultisigMemberSignature
Available on crate feature
serde only.impl Eq for MultisigMemberSignature
impl StructuralPartialEq for MultisigMemberSignature
Auto Trait Implementations§
impl Freeze for MultisigMemberSignature
impl RefUnwindSafe for MultisigMemberSignature
impl Send for MultisigMemberSignature
impl Sync for MultisigMemberSignature
impl Unpin for MultisigMemberSignature
impl UnwindSafe for MultisigMemberSignature
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