Centralize hexToUint8Array and other privkey-handling helpers #43
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#43
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
hexToUint8Arrayis currently duplicated inline in at least two composables (src/modules/activities/composables/useRSVP.tsandsrc/modules/base/nostr/ReactionService.ts). Once a third caller emerges, promote it to a shared module —src/lib/crypto/already exists and is the natural home.Scope:
hexToUint8Array(and its inverse if any caller needs it) tosrc/lib/crypto/hex.ts.docs/nostr-patterns/publishing.md§ "Sign withnostr-tools.finalizeEvent, take privkey as bytes" to point at the new location.Non-goals:
Trigger condition: do this when a third call site appears, or sooner if any of the existing call sites need to handle a non-hex input (e.g. NIP-49 ciphertext, NIP-46 remote signer).