upleb.uk

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

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVitor Pamplona <vitor@vitorpamplona.com>2024-01-05 20:51:00 -0500
committerGitHub <noreply@github.com>2024-01-05 20:51:00 -0500
commitb3c0c4f64a1da331e0632d99f617a25e1d77cd28 (patch)
tree5a821c1d2118aa0137526ed90ff5f2520d003b10
parent3e05545952742e3fc28b7af7fc84682587df0be1 (diff)
parent74a586d6ae04594987f1c950cfdbd5ca0e83542b (diff)
Merge pull request #968 from shuoer86/master
Fix typos
-rw-r--r--44.md4
-rw-r--r--53.md2
2 files changed, 3 insertions, 3 deletions
diff --git a/44.md b/44.md
index 0efa482..f3071ea 100644
--- a/44.md
+++ b/44.md
@@ -161,7 +161,7 @@ validation rules, refer to BIP-340.
161### Implementation pseudocode 161### Implementation pseudocode
162 162
163The following is a collection of python-like pseudocode functions which implement the above primitives, 163The following is a collection of python-like pseudocode functions which implement the above primitives,
164intended to guide impelmenters. A collection of implementations in different languages is available at https://github.com/paulmillr/nip44. 164intended to guide implementers. A collection of implementations in different languages is available at https://github.com/paulmillr/nip44.
165 165
166```py 166```py
167# Calculates length of the padded byte array. 167# Calculates length of the padded byte array.
@@ -286,7 +286,7 @@ Example of a test vector from the file:
286The file also contains intermediate values. A quick guidance with regards to its usage: 286The file also contains intermediate values. A quick guidance with regards to its usage:
287 287
288- `valid.get_conversation_key`: calculate conversation_key from secret key sec1 and public key pub2 288- `valid.get_conversation_key`: calculate conversation_key from secret key sec1 and public key pub2
289- `valid.get_message_keys`: calculate chacha_key, chacha_nocne, hmac_key from conversation_key and nonce 289- `valid.get_message_keys`: calculate chacha_key, chacha_nonce, hmac_key from conversation_key and nonce
290- `valid.calc_padded_len`: take unpadded length (first value), calculate padded length (second value) 290- `valid.calc_padded_len`: take unpadded length (first value), calculate padded length (second value)
291- `valid.encrypt_decrypt`: emulate real conversation. Calculate pub2 from sec2, verify conversation_key from (sec1, pub2), encrypt, verify payload, then calculate pub1 from sec1, verify conversation_key from (sec2, pub1), decrypt, verify plaintext. 291- `valid.encrypt_decrypt`: emulate real conversation. Calculate pub2 from sec2, verify conversation_key from (sec1, pub2), encrypt, verify payload, then calculate pub1 from sec1, verify conversation_key from (sec2, pub1), decrypt, verify plaintext.
292- `valid.encrypt_decrypt_long_msg`: same as previous step, but instead of a full plaintext and payload, their checksum is provided. 292- `valid.encrypt_decrypt_long_msg`: same as previous step, but instead of a full plaintext and payload, their checksum is provided.
diff --git a/53.md b/53.md
index e17f965..fad2622 100644
--- a/53.md
+++ b/53.md
@@ -94,7 +94,7 @@ Common use cases include meeting rooms/workshops, watch-together activities, or
94 ["title", "Adult Swim Metalocalypse"], 94 ["title", "Adult Swim Metalocalypse"],
95 ["summary", "Live stream from IPTV-ORG collection"], 95 ["summary", "Live stream from IPTV-ORG collection"],
96 ["streaming", "https://adultswim-vodlive.cdn.turner.com/live/metalocalypse/stream.m3u8"], 96 ["streaming", "https://adultswim-vodlive.cdn.turner.com/live/metalocalypse/stream.m3u8"],
97 ["starts", "1687182672"] 97 ["starts", "1687182672"],
98 ["status", "live"], 98 ["status", "live"],
99 ["t", "animation"], 99 ["t", "animation"],
100 ["t", "iptv"], 100 ["t", "iptv"],