privateKey property

Uint8List get privateKey

The 32-byte Ed25519 private key (seed).

Returns a defensive copy to prevent external mutation. Throws StateError if dispose has been called.

Implementation

Uint8List get privateKey {
  if (_isDisposed) {
    throw StateError('KeyPair has been disposed');
  }
  return Uint8List.fromList(_privateKey);
}