signPayload method
Signs payload (UTF-8) with a key created on the device for this one
request. On Android the key carries a hardware attestation whose
challenge is the SHA-256 of nonce where the device supports it.
Implementation
@override
Future<DeviceSignature> signPayload(String nonce, String payload) async {
final raw = await methodChannel.invokeMapMethod<Object?, Object?>(
'signPayload',
<String, Object?>{'nonce': nonce, 'payload': payload},
);
return DeviceSignature.fromMap(raw ?? const <Object?, Object?>{});
}