decodeBls12381PrivateKeyRaw static method

SecretBytes decodeBls12381PrivateKeyRaw(
  1. List<int> raw, {
  2. bool wipeSource = false,
})

Implementation

static SecretBytes decodeBls12381PrivateKeyRaw(
  List<int> raw, {
  bool wipeSource = false,
}) {
  if (raw.length != 32) {
    throw CoreErrors.cryptoFailed(
      "decodeBls12381PrivateKeyRaw",
      reason: 'BLS12-381 private key must be 32 bytes',
    );
  }
  return SecretBytes(raw, wipeSource: wipeSource);
}