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.
Returns:
A SchnorrkelMiniSecretKey
instance.
Implementation
factory SchnorrkelMiniSecretKey.fromBytes(List<int> keyBytes) {
_KeyUtils._checkKeysBytes(
keyBytes, SchnorrkelKeyCost.miniSecretLength, "mini secret key");
return SchnorrkelMiniSecretKey._(keyBytes);
}