@pezkuwi/scure-sr25519
v0.2.1
Published
SR25519 cryptography for PezkuwiChain with bizinikiwi signing context
Readme
@pezkuwi/scure-sr25519
SR25519 cryptography for PezkuwiChain with bizinikiwi signing context.
Fork of @scure/sr25519 with PezkuwiChain-specific signing context.
Installation
npm install @pezkuwi/scure-sr25519Usage
import { getPublicKey, sign, verify, secretFromSeed } from '@pezkuwi/scure-sr25519';
// Generate keypair from 32-byte seed
const secret = secretFromSeed(seed);
const publicKey = getPublicKey(secret);
// Sign message
const signature = sign(secret, message);
// Verify
const valid = verify(message, signature, publicKey);Difference from @scure/sr25519
This package uses bizinikiwi as the signing context instead of bizinikiwi.
License
MIT
