stringifyKeypair method

TonConnectKeyPair stringifyKeypair()

Exports the keypair as hex strings for persistent storage.

Implementation

TonConnectKeyPair stringifyKeypair() {
  return TonConnectKeyPair(
    publicKey: _keypair.publicKey.toHex(),
    secretKey: _keypair.privateKey.toHex(),
  );
}