feat(base): phase-2 bucket-B migration via signEventViaLnbits #88
No reviewers
Labels
No labels
app:activities
app:chat
app:events
app:forum
app:libra
app:market
app:restaurant
app:tasks
app:wallet
app:webapp
bug
enhancement
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
aiolabs/webapp!88
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/phase-2-bucket-b-sign-event"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
User.prvkeyfield removal). vue-tsc was failing in 5 files; this PR makes all of them green.signEventViaLnbits(template)helper per design-questions Q3.3 atsrc/lib/nostr/signing.ts.NostrTransportService.call()(kind 21000 RPC) per Q4.2 — defers transport revival to phase 3+. Scaffolding retained.useMarket.tsper Bucket C — nonip44_decryptHTTP endpoint exists yet.Wire shape of the helper
POST /api/v1/auth/sign-event(aiolabs/lnbits PR #29):Authorizationheader) +credentials: 'include'so the CSRF cookie rides along.GET /auth/csrf-tokenonce per page load, cached, refreshed on 403-with-CSRF.{kind, created_at, tags, content}; response = fully-signedEvent.Known regression — intentional
The marketplace order-DM gift-wrap unwrap path (
useMarket.ts:handleOrderDM) is non-functional until phase-3 adds NIP-44 decrypt over HTTP/bunker. Per the workspace CLAUDE.md, thenostrmarketextension handles order publishing/receipt server-side; this client-side fast-path was redundant. Flagged withconsole.warnso it's visible if the path goes hot.Test plan
vue-tsc -bclean (was 8 errors, now 0)npm run buildsucceeds/auth/sign-eventagainst the deployed lnbits devauth/csrf-token200 +auth/sign-event200)LNBITS_CORS_ALLOWED_ORIGINSallowlist must include the demo origin)Refs
~/dev/coordination/webapp-design-questions.mdQ3.3 (uniform helper) + Q4.2/Q4.3 (Bucket C deferral)/auth/sign-eventendpoint)🤖 Generated with Claude Code