NIP-46: request target proof-of-work difficulty when signing events

This commit is contained in:
Alex Gleason
2023-11-20 12:34:19 -06:00
parent 7ed34a0906
commit 6868f39719
2 changed files with 20 additions and 5 deletions

View File

@@ -91,7 +91,7 @@ function withProof(
async function obtainProof(c: AppContext, opts?: ParseAuthRequestOpts) {
const req = localRequest(c);
const reqEvent = await buildAuthEventTemplate(req, opts);
const resEvent = await signEvent(reqEvent, c);
const resEvent = await signEvent(reqEvent, c, opts);
const result = await validateAuthEvent(req, resEvent, opts);
if (result.success) {