clientDataHash32 method

  1. @override
Uint8List clientDataHash32(
  1. PassKeysOptions options,
  2. {String? challenge}
)
override

Creates a 32-byte client data hash for PassKeys authentication.

  • options: The PassKeysOptions for the client data hash.
  • challenge: A random challenge for the client data hash.

Returns a Uint8List representing the 32-byte client data hash.

Implementation

@override
Uint8List clientDataHash32(PassKeysOptions options, {String? challenge}) {
  final dataBuffer = clientDataHash(options, challenge: challenge);
  final hash = sha256Hash(dataBuffer);
  return Uint8List.fromList(hash.bytes);
}