SchnorrkelMiniSecretKey.fromBytes constructor
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);
}