getECShareSecret function

Future<Uint8List> getECShareSecret(
  1. Uint8List privateKey,
  2. Uint8List rawPublicKey
)

Implementation

Future<Uint8List> getECShareSecret(
  Uint8List privateKey,
  Uint8List rawPublicKey,
) async {
  final result = await secp256K1GetSharedSecret(
    req: Secp256k1ShareSecretReq(
      seed: privateKey,
      publicKeyRawBytes: rawPublicKey,
    ),
  );
  return result;
}