mirror of
https://github.com/aljazceru/ditto.git
synced 2026-01-08 08:04:21 +01:00
NIP-46: request target proof-of-work difficulty when signing events
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user