Skip to main content

curvy-stingrays-attend

Add a createKeyPairFromPrivateKeyBytes helper that creates a keypair from the 32-byte private key bytes.

import { createKeyPairFromPrivateKeyBytes } from '@solana/keys';

const { privateKey, publicKey } = await createKeyPairFromPrivateKeyBytes(new Uint8Array([...]));