pub struct MultisigCommittee { /* private fields */ }
Implementations§
source§impl MultisigCommittee
impl MultisigCommittee
sourcepub fn to_address(&self) -> Address
Available on crate feature hash
only.
pub fn to_address(&self) -> Address
hash
only.Derive an Address from a MultisigCommittee. A MultiSig address
is defined as the 32-byte Blake2b hash of serializing the flag, the
threshold, concatenation of all n flag, public keys and
its weight. flag_MultiSig || threshold || flag_1 || pk_1 || weight_1 || ... || flag_n || pk_n || weight_n
.
When flag_i is ZkLogin, pk_i refers to [struct ZkLoginPublicIdentifier] derived from padded address seed in bytes and iss.
source§impl MultisigCommittee
impl MultisigCommittee
pub fn new(members: Vec<MultisigMember>, threshold: u16) -> Self
pub fn members(&self) -> &[MultisigMember]
pub fn threshold(&self) -> u16
pub fn scheme(&self) -> SignatureScheme
Trait Implementations§
source§impl Arbitrary for MultisigCommittee
impl Arbitrary for MultisigCommittee
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<MultisigCommittee>
type Strategy = BoxedStrategy<MultisigCommittee>
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 MultisigCommittee
impl Clone for MultisigCommittee
source§fn clone(&self) -> MultisigCommittee
fn clone(&self) -> MultisigCommittee
Returns a copy 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 MultisigCommittee
impl Debug for MultisigCommittee
source§impl<'de> Deserialize<'de> for MultisigCommittee
impl<'de> Deserialize<'de> for MultisigCommittee
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 MultisigCommittee
impl PartialEq for MultisigCommittee
source§impl Serialize for MultisigCommittee
impl Serialize for MultisigCommittee
impl Eq for MultisigCommittee
impl StructuralPartialEq for MultisigCommittee
Auto Trait Implementations§
impl Freeze for MultisigCommittee
impl RefUnwindSafe for MultisigCommittee
impl Send for MultisigCommittee
impl Sync for MultisigCommittee
impl Unpin for MultisigCommittee
impl UnwindSafe for MultisigCommittee
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)