Skip to main content

Getting started

Install masterseed with npm install masterseed or the Go module github.com/bsv8/MasterSeed. Both SDKs implement Keymaster Seed V1: 256 KiB blocks, raw 32-byte SHA-256 digests, and seed_hash = SHA256(seed_bytes).

import {createSeed} from 'masterseed';
const source = (async function*(){ yield new TextEncoder().encode('abc'); })();
const seedBytes: Uint8Array[] = [];
const info = await createSeed(source, {write: async rawDigest => { seedBytes.push(rawDigest.slice()); }});