Class: MultisigAggregatedSignature
Aggregated signature from members of a multisig committee.
BCS
The BCS serialized form of this type is specified in
bcs-schema.abnf.
Extends
UniffiAbstractObject
Implements
Constructors
Constructor
new MultisigAggregatedSignature(signatures, committee): MultisigAggregatedSignature;
Construct a MultisigAggregatedSignature from a list of UserSignatures and a
MultisigCommittee.
This:
- validates
committeeviaMultisigCommittee::validate, except that a committee mixing Ed25519 with other key schemes is accepted when every member provides a signature; - converts each
UserSignatureinto aMultisigMemberSignature; - derives the
bitmapby locating each signature's public key in the committee, rejecting duplicates and signatures from non-members; - rejects empty signature lists and lists longer than the committee.
The caller must provide signatures in the same order as their corresponding members in
committee: for committee [pk1, pk2, pk3, pk4, pk5], [sig1, sig2, sig5] is valid but
[sig2, sig1, sig5] is not.
Parameters
signatures
committee
Returns
MultisigAggregatedSignature
Overrides
UniffiAbstractObject.constructor
Properties
[destructorGuardSymbol]
readonly [destructorGuardSymbol]: UniffiGcObject;
[pointerLiteralSymbol]
readonly [pointerLiteralSymbol]: bigint;
[uniffiTypeNameSymbol]
readonly [uniffiTypeNameSymbol]: "MultisigAggregatedSignature" = "MultisigAggregatedSignature";
Methods
bitmap()
bitmap(): number;
The bitmap that indicates which committee members provided their signature.
Returns
number
Implementation of
MultisigAggregatedSignatureLike.bitmap
committee()
committee(): MultisigCommitteeLike;
Returns
Implementation of
MultisigAggregatedSignatureLike.committee
deriveAddress()
deriveAddress(): AddressLike;
Derive the Address of the committee that produced this signature.
See MultisigCommittee::derive_address.
Returns
Implementation of
MultisigAggregatedSignatureLike.deriveAddress
equals()
equals(other): boolean;
Parameters
other
MultisigAggregatedSignature
Returns
boolean
signatures()
signatures(): MultisigMemberSignatureLike[];
The list of signatures from committee members
Returns
Implementation of
MultisigAggregatedSignatureLike.signatures
toBcs()
toBcs(): ArrayBuffer;
Convert this type to BCS encoded bytes.
Returns
ArrayBuffer
Implementation of
MultisigAggregatedSignatureLike.toBcs
toDebugString()
toDebugString(): string;
Returns
string
toDisplayString()
toDisplayString(): string;
Render this type as human-readable text.
Some types also print this through the binding's native string conversion; this method is the spelling every object type has.
The layout is meant for reading and can change between releases. Use the JSON or BCS conversions for output that gets parsed.
Returns
string
Implementation of
MultisigAggregatedSignatureLike.toDisplayString
toJson()
toJson(): string;
Convert this type to a JSON encoded string.
Returns
string
Implementation of
MultisigAggregatedSignatureLike.toJson
toString()
toString(): string;
Returns a string representation of an object.
Returns
string
uniffiDestroy()
uniffiDestroy(): void;
Explicitly tell Rust to destroy the native peer that backs this object.
Once this method has been called, any following method calls will throw an error.
Can be called more than once.
Returns
void
Overrides
UniffiAbstractObject.uniffiDestroy
uniffiUse()
uniffiUse<T>(block): T;
A convenience method to use this object, then destroy it after its use.
Type Parameters
T
T
Parameters
block
(obj) => T
Returns
T
Inherited from
UniffiAbstractObject.uniffiUse
fromBcs()
static fromBcs(bcs): MultisigAggregatedSignatureLike;
Create this type from BCS encoded bytes.
Parameters
bcs
ArrayBuffer
Returns
MultisigAggregatedSignatureLike
fromJson()
static fromJson(json): MultisigAggregatedSignatureLike;
Create this type from a JSON encoded string.
Parameters
json
string
Returns
MultisigAggregatedSignatureLike
instanceOf()
static instanceOf(obj_): obj_ is MultisigAggregatedSignature;
Parameters
obj_
any
Returns
obj_ is MultisigAggregatedSignature