generateBls12381G1Key static method
Generates a BLS12-381 G1 key pair for use with BBS+ signatures.
This method generates both the public key and the secret key using a provided cryptographic seed.
Implementation
static Future<Map<String, Uint8List>> generateBls12381G1Key(
Uint8List seed) async {
final result = await _channel.invokeMethod('generateBls12381G1Key', {
'seed': seed,
});
return {
'publicKey': Uint8List.fromList(List<int>.from(result['publicKey'])),
'secretKey': Uint8List.fromList(List<int>.from(result['secretKey'])),
};
}