SchnorrkelPublicKey constructor
Creates a SchnorrkelPublicKey
from the given byte representation.
Parameters:
keyBytes
: A byte array representing the Schnorrkel public key.
Returns:
A SchnorrkelPublicKey
instance created from the provided byte array.
Implementation
factory SchnorrkelPublicKey(List<int> keyBytes) {
_KeyUtils._checkKeysBytes(
keyBytes, SchnorrkelKeyCost.publickeyLength, "public key");
RistrettoPoint.fromBytes(keyBytes);
return SchnorrkelPublicKey._(
BytesUtils.toBytes(keyBytes, unmodifiable: true));
}