upleb.uk

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

summaryrefslogtreecommitdiff
path: root/44.md
diff options
context:
space:
mode:
authorPaul Miller <paul@paulmillr.com>2024-09-01 16:13:12 +0200
committerGitHub <noreply@github.com>2024-09-01 16:13:12 +0200
commitbe17e5dcd9943c1d4854eccd5714241d4fe246e1 (patch)
treebdcaef1d4c254a830cde7ed570babedaeae22ec0 /44.md
parent1002104ece1fe3de7a091084d97e031c7291c9c0 (diff)
Clarify function name in libsecp256k1
Diffstat (limited to '44.md')
-rw-r--r--44.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/44.md b/44.md
index 339d300..ccd1f50 100644
--- a/44.md
+++ b/44.md
@@ -142,7 +142,8 @@ validation rules, refer to BIP-340.
142 The operation produces a shared point, and we encode the shared point's 32-byte x coordinate, using method 142 The operation produces a shared point, and we encode the shared point's 32-byte x coordinate, using method
143 `bytes(P)` from BIP340. Private and public keys must be validated as per BIP340: pubkey must be a valid, 143 `bytes(P)` from BIP340. Private and public keys must be validated as per BIP340: pubkey must be a valid,
144 on-curve point, and private key must be a scalar in range `[1, secp256k1_order - 1]`. 144 on-curve point, and private key must be a scalar in range `[1, secp256k1_order - 1]`.
145 Some libraries, like libsecp256k1, apply sha256 on the output. The hashing is unnecessary in NIP44. 145 NIP44 doesn't do hashing of the output: keep this in mind, because some libraries hash it using sha256.
146 As an example, in libsecp256k1, unhashed version is available in `secp256k1_ec_pubkey_tweak_mul`
146- Operators 147- Operators
147 - `x[i:j]`, where `x` is a byte array and `i, j <= 0` returns a `(j - i)`-byte array with a copy of the 148 - `x[i:j]`, where `x` is a byte array and `i, j <= 0` returns a `(j - i)`-byte array with a copy of the
148 `i`-th byte (inclusive) to the `j`-th byte (exclusive) of `x`. 149 `i`-th byte (inclusive) to the `j`-th byte (exclusive) of `x`.