MultiSigAddress constructor
MultiSigAddress({
- required int version,
- required int threshold,
- required List<
Ed25519PublicKey> publicKeys,
Implementation
MultiSigAddress({
required this.version,
required this.threshold,
required this.publicKeys,
}) {
if (version != 1) {
throw AlgorandException(message: 'Unknown msig version');
}
if (threshold == 0 || publicKeys.isEmpty || threshold > publicKeys.length) {
throw AlgorandException(message: 'Invalid threshold');
}
}