decodeBls12381PrivateKeyRaw static method
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);
}