Skip to main content
Home

Built and signed on GitHub Actions

Javascript library for Stellar SEP-0005 without needing NodeJS features.

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
76%
Published
3 months ago (0.1.0)

Stellar SEP-0005

A key derivation library for Stellar following SEP-0005 based on the popular library stellar-hd-wallet.

Why making a new library? Because the library stellar-hd-wallet uses Node.js features and so it is not compatible with some frameworks and environments if you don't use a polyfill (like Angular, Deno, Vanilla JS, etc.)

Install

# Node
npx jsr add @creit-tech/stellar-sep-0005

# Deno
deno add jsr:@creit-tech/stellar-sep-0005

You can check more installation options in the JSR package.

How to use

import { Keypair } from "@stellar/stellar-sdk";
import { deriveAccount, generateMnemonic, seedFromMnemonic } from "@creit-tech/stellar-sep-0005";

const mnemonic: string = generateMnemonic();
const seed: Uint8Array = await seedFromMnemonic({ mnemonic });
const rawEd25519Seed: Uint8Array = await deriveAccount({ seed, account: 0 });
const keypair: Keypair = Keypair.fromRawEd25519Seed(rawEd25519Seed as any);

Note: In our example we use as any to ignore the Typescript error saying Uint8Array is missing Buffer features, for the Keypair.fromRawEd25519Seed case those are not used so it's safe to ignore the alert.

License

Licensed under the MIT License, Copyright © 2025-present Creit Tech.

Check out the LICENSE.md file for more details.

Built and signed on
GitHub Actions

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@creit-tech/stellar-sep-0005

Import symbol

import * as stellar_sep_____ from "@creit-tech/stellar-sep-0005";
or

Import directly with a jsr specifier

import * as stellar_sep_____ from "jsr:@creit-tech/stellar-sep-0005";

Add Package

pnpm i jsr:@creit-tech/stellar-sep-0005
or (using pnpm 10.8 or older)
pnpm dlx jsr add @creit-tech/stellar-sep-0005

Import symbol

import * as stellar_sep_____ from "@creit-tech/stellar-sep-0005";

Add Package

yarn add jsr:@creit-tech/stellar-sep-0005
or (using Yarn 4.8 or older)
yarn dlx jsr add @creit-tech/stellar-sep-0005

Import symbol

import * as stellar_sep_____ from "@creit-tech/stellar-sep-0005";

Add Package

vlt install jsr:@creit-tech/stellar-sep-0005

Import symbol

import * as stellar_sep_____ from "@creit-tech/stellar-sep-0005";

Add Package

npx jsr add @creit-tech/stellar-sep-0005

Import symbol

import * as stellar_sep_____ from "@creit-tech/stellar-sep-0005";

Add Package

bunx jsr add @creit-tech/stellar-sep-0005

Import symbol

import * as stellar_sep_____ from "@creit-tech/stellar-sep-0005";