SchnorrkelMiniSecretKey.fromBytes constructor

SchnorrkelMiniSecretKey.fromBytes(
  1. List<int> keyBytes
)

Creates a SchnorrkelMiniSecretKey instance from a byte representation. The input bytes are expected to have the correct length for a mini-secret key.

Parameters:

  • keyBytes: A byte array representing the mini-secret key.

Implementation

factory SchnorrkelMiniSecretKey.fromBytes(List<int> keyBytes) {
  _KeyUtils._checkKeysBytes(
    keyBytes,
    SchnorrkelKeyCost.miniSecretLength,
    "mini secret key",
    "SchnorrkelMiniSecretKey",
  );
  return SchnorrkelMiniSecretKey._(keyBytes);
}