MultiSigAddress class
Multisignature accounts are a logical representation of an ordered set of addresses with a threshold and version.
Multisignature accounts can perform the same operations as other accounts, including sending transactions and participating in consensus.
The address for a multisignature account is essentially a hash of the ordered list of accounts, the threshold and version values. The threshold determines how many signatures are required to process any transaction from this multisignature account.
MultisigAddress is a convenience class for handling multisignature public identities.
- Annotations
-
- @JsonSerializable(fieldRename: FieldRename.kebab)
Constructors
-
MultiSigAddress({required int version, required int threshold, required List<
Address> publicKeys}) -
MultiSigAddress.fromJson(Map<
String, dynamic> json) -
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setter
-
publicKeys
→ List<
Address> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stringify → bool?
-
If set to
true
, thetoString
method will be overridden to output this instance'sprops
.no setterinherited - threshold → int
-
final
- version → int
-
final
Methods
-
append(
{required Account account, required SignedTransaction transaction}) → Future< SignedTransaction> - Appends our signature to the given multisig transaction. Transaction is the partially signed msig tx to which to append signature. Returns a merged multisig transaction.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sign(
{required Account account, required RawTransaction transaction}) → Future< SignedTransaction> - Creates a multisig transaction from the input and the multisig account.
-
toAddress(
) → Address - Convert the MultiSignature Address to more easily represent as a string.
-
toJson(
) → Map< String, dynamic> -
toMessagePack(
) → Map< String, dynamic> -
toString(
) → String - A string representation of this object.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
mergeMultisigTransactions(
List< SignedTransaction> transactions) → Future<SignedTransaction> - Merges the given (partially) signed multisig transactions. Transactions are the partially signed multisig transactions to merge. Underlying transactions may be mutated.
-
toKeys(
List< Uint8List> keys) → List<Ed25519PublicKey> - Helper method to convert list of byte[]s to list of Ed25519PublicKeys.
Constants
- MULTISIG_PREFIX → const String