createMultisigStorageKey static method

Uint8List createMultisigStorageKey(
  1. Uint8List multiSigAddressBytes,
  2. Uint8List callHashReceiver
)

Make Multisig Storage Key

Implementation

static Uint8List createMultisigStorageKey(
    Uint8List multiSigAddressBytes, Uint8List callHashReceiver) {
  final multisigModuleHash = Hasher.twoxx128.hashString('Multisig');
  final multisigStorageHash = Hasher.twoxx128.hashString('Multisigs');
  final multisigAddressHash = Hasher.twoxx64.hash(multiSigAddressBytes);
  final multisigCallHash = Hasher.blake2b128.hash(callHashReceiver);

  final multisigStorageKey = multisigModuleHash +
      multisigStorageHash +
      multisigAddressHash +
      multiSigAddressBytes +
      multisigCallHash +
      callHashReceiver;

  return Uint8List.fromList(multisigStorageKey);
}