upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/44.md
AgeCommit message (Collapse)Author
2026-03-17nip44: reject non-canonical extended prefix in unpad() pseudocodeAlex Gleason
When the 6-byte extended prefix sentinel is detected, validate that the decoded length is >= extended_prefix_threshold (65536). Without this, the same plaintext could be encoded with either prefix format, breaking strict canonicalization.
2026-03-17nip44: fix pseudocode bugs, comment arithmetic, add implementation guidance ↵Alex Gleason
and test vectors
2026-03-17nip44: allow encryption of payloads larger than 65535 bytesAlex Gleason
Extend the v2 padding format with a backwards-compatible sentinel: when the first 2 bytes of the length prefix are zero, the next 4 bytes encode the plaintext length as a big-endian u32. This raises the maximum from 65535 bytes to 2^32-1 bytes without requiring a version bump. Fixes from nostr-protocol/nips#1907: - Fix off-by-one: use >= 65536 (not > 65536) for the extended path, since u16 can only represent 0..65535 - Fix padding validation: use dynamic prefix_len (2 or 6) instead of hardcoded 2 in the unpad() size check - Fix len(d) typo in decode_payload (should be len(data)) - Remove upper-bound size checks in decode_payload that would reject large payloads - Add write_u32_be, read_uint16_be, read_uint32_be to function list - Add extended_prefix_threshold constant - Update size range comments for both small and large payload paths
2024-12-21nip44: update some nits.Asai Toshiya
2024-12-06Clarify the units小原晴太
2024-12-04NIP-44: Proper base64 explanation小原晴太
"Encoding algorithm" instead of "compression algorithm"
2024-09-03Merge pull request #1466 from paulmillr/patch-2Vitor Pamplona
nip44: clarify ecdh hashing
2024-09-02style: fix header styles in same formatkehiy
2024-09-01Clarify function name in libsecp256k1Paul Miller
2024-09-01nip44: clarify ecdh hashingPaul Miller
2024-01-06fix typo 44.mdshuoer86
2023-12-25fix typosjiftechnify
2023-12-20Add clarification about not replacing nip 04Jon Staab
2023-12-20Clean up NIP 44 to clarify separation of concerns (encryption vs messaging), ↵Jon Staab
improve formatting and clarify encryption/decryption steps
2023-12-20nip-44: add audit noticePaul Miller
2023-12-20nip-44: remove author names and arbitrary line-breaks.fiatjaf
2023-12-20NIP44 encryption standard, revision 3 (#746)Paul Miller
* Introduce NIP-44 encryption standard * Finalize NIP-44 * Update spec. --------- Co-authored-by: Jonathan Staab <shtaab@gmail.com>