MultiSigAddress constructor
MultiSigAddress({})
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');
}
}