fromBytes static method

SecretKey fromBytes(
  1. Uint8List bytes
)

Creates a private key from a 64-byte seed, the ML-DSA-65 seed (32 bytes) followed by the Ed25519 seed (32 bytes).

Throws if bytes is not 64 bytes long.

Implementation

static SecretKey fromBytes(Uint8List bytes) =>
    SecretKey._(ffi.XdsaSecretKey.fromBytes(bytes: bytes));