authorize method
Signs a message using the private-key of these Keys. Returns a signature on the message.
Implementation
Future<Uint8List> authorize(Uint8List message) async {
ByteBuffer signature = await promiseToFuture(callMethod(window.crypto!.subtle!, 'sign', [
EcdsaParams(
name: 'ECDSA',
hash: 'SHA-256'
),
this.private_key,
message
]));
return signature.asUint8List();
}