MultiSigAddress constructor

MultiSigAddress({
  1. required int version,
  2. required int threshold,
  3. 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');
  }
}