@cashu/cashu-ts
Version:
cashu library for communicating with a cashu mint
3 lines (2 loc) • 498 B
JavaScript
;Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("@scure/bip32"),a=require("../common.cjs.js"),u="m/129372'/0'",y=(e,r,t)=>o(e,r,t,0),l=(e,r,t)=>o(e,r,t,1),o=(e,r,t,i)=>{const d=v.HDKey.fromMasterSeed(e),c=a.getKeysetIdInt(r),s=`${u}/${c}'/${t}'/${i}`,n=d.derive(s);if(n.privateKey===null)throw new Error("Could not derive private key");return n.privateKey};exports.deriveBlindingFactor=l;exports.deriveSecret=y;
//# sourceMappingURL=NUT09.cjs.js.map