toEd25519Bytes method
The toEd25519Bytes method converts the Schnorrkel secret key into a byte representation following the Ed25519 format, suitable for use in Ed25519 operations.
Implementation
List<int> toEd25519Bytes() {
final k = key();
/// Multiply the secret key by the cofactor.
_KeyUtils.multiplyScalarBytesByCofactor(k);
return [...k, ...nonce()];
}