toAIP80String method

String toAIP80String()

Get the private key as an AIP-80 compliant hex string.

Read about AIP-80

SECURITY: Same caveat as toString — produces an immutable string containing the key material; cannot be zeroed by clear().

Implementation

String toAIP80String() {
  _ensureNotCleared();
  return PrivateKey.formatPrivateKey(
    _signingKey.toString(),
    PrivateKeyVariants.ed25519,
  );
}