toAddress method
Converts the multisig public key to a Sui address.
Implementation
@override
SuiAddress toAddress() {
return SuiAddress(SuiAddrEncoder().encodeMultisigKey(
pubKey: publicKeys
.map((e) => SuiPublicKeyAndWeight(
publicKey: e.publicKey.publicKey, weight: e.weight))
.toList(),
threshold: threshold));
}