Returns keypair.rawPublicKey().toString('hex').
Setup
import { generateStellarKeypair, stellarPublicKeyToHex } from '@fairmint/canton-node-sdk';
Minimal example
const hex = stellarPublicKeyToHex(generateStellarKeypair());
console.log(hex);
Parameters
keypair—Keypairwhose raw public bytes convert to lowercase hex without0x.
Returns
string — Hex-encoded raw key (64 chars).