mirror of
https://github.com/nostr-protocol/nips.git
synced 2025-12-08 16:18:50 +00:00
fix typo
This commit is contained in:
2
44.md
2
44.md
@@ -89,7 +89,7 @@ NIP-44 version 2 has the following design characteristics:
|
|||||||
- Padding algorithm is related to powers-of-two, with min padded msg size of 32 bytes
|
- Padding algorithm is related to powers-of-two, with min padded msg size of 32 bytes
|
||||||
- Plaintext length is encoded in big-endian:
|
- Plaintext length is encoded in big-endian:
|
||||||
- if smaller than 65536, as a u16 in the first 2 bytes of the padded blob;
|
- if smaller than 65536, as a u16 in the first 2 bytes of the padded blob;
|
||||||
- if greater than 65536, the first the first 6 bytes of the padded blob, the first 2 being zero and the other 4 being the actual encoded length as u32
|
- if greater than 65536, the first 6 bytes of the padded blob, the first 2 being zero and the other 4 being the actual encoded length as u32
|
||||||
5. Encrypt padded content
|
5. Encrypt padded content
|
||||||
- Use ChaCha20, with key and nonce from step 3
|
- Use ChaCha20, with key and nonce from step 3
|
||||||
6. Calculate MAC (message authentication code)
|
6. Calculate MAC (message authentication code)
|
||||||
|
|||||||
Reference in New Issue
Block a user