QubicTypeScript

Installation

How to add @qubic.org/crypto to your project.

bun add @qubic.org/crypto
npm install @qubic.org/crypto
pnpm add @qubic.org/crypto

@qubic.org/types is a required peer dependency. Install it alongside @qubic.org/crypto:

bun add @qubic.org/crypto @qubic.org/types
npm install @qubic.org/crypto @qubic.org/types
pnpm add @qubic.org/crypto @qubic.org/types

sign is the only async function — always await it. All other functions (publicKeyFromSeed, deriveIdentityFromSeed, verify, k12) are synchronous.