blsCreateProof static method

Future<Uint8List> blsCreateProof({
  1. required Uint8List publicKey,
  2. required Uint8List nonce,
  3. required Uint8List signature,
  4. 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>());
}