TomSecretsUnlockBundle constructor

TomSecretsUnlockBundle({
  1. required List<int> compositeKey,
  2. String? outerKey,
})

A bundle of compositeKey (32 bytes; a copy is kept) and outerKey.

Implementation

TomSecretsUnlockBundle({required List<int> compositeKey, this.outerKey})
  : compositeKey = Uint8List.fromList(compositeKey) {
  if (compositeKey.length != tomSecretsCompositeKeyBytes) {
    throw const TomSecretsBundleException('a composite key has 32 bytes');
  }
}