blsCreateProof static method
Future<Uint8List>
blsCreateProof({
- required Uint8List publicKey,
- required Uint8List nonce,
- required Uint8List signature,
- required List<
ProofMessage> messages,
Creates a zero-knowledge proof using BLS with specified ProofMessage objects.
Implementation
static Future<Uint8List> blsCreateProof({
required Uint8List publicKey,
required Uint8List nonce,
required Uint8List signature,
required List<ProofMessage> messages,
}) async {
final result = await _channel.invokeMethod<List<dynamic>>(
'blsCreateProof',
{
'publicKey': publicKey,
'nonce': nonce,
'signature': signature,
'messages': messages.map((m) => m.toJson()).toList(),
},
);
return Uint8List.fromList(result!.cast<int>());
}