fromHex static method

K4SecretKey fromHex(
  1. String hex
)

Implementation

static K4SecretKey fromHex(String hex) {
  final bytes = _hexToBytes(hex);
  if (bytes.length != keyLength) {
    throw ArgumentError(
        'K4SecretKey must be exactly $keyLength bytes (32-byte seed + 32-byte public key)');
  }
  return K4SecretKey(bytes);
}