@kluster/kaspa-signature
v0.1.5
Published
Verify a schnorr signature against a Kaspa address
Downloads
24
Readme
Verify a schnorr signature against a Kaspa address
Getting started:
npm i @kluster/kaspa-signatureExample:
const message = "hello world";
const signature =
"35c5efc9c4a87df63301fa0e51cb29e1417676ed798486e7e5bf7fb413bdbfa3549ecb811636a31363c13fea5393202f657d020f1ee1976bef55f7386f6ace65";
const kaspaAddressStr =
"kaspa:qr0lr4ml9fn3chekrqmjdkergxl93l4wrk3dankcgvjq776s9wn9jkdskewva";
// result is true or false
const result = await verifySignature(
message,
signature,
KaspaAddress.fromString(kaspaAddressStr),
);Signing is out of the scope of this library, for now.
