Skip to content

Commit b74f2dc

Browse files
jonasnickreal-or-random
authored andcommitted
Remove mentions of DER in H derivation.
1 parent b368a5d commit b74f2dc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/modules/rangeproof/main_impl.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
2121
import hashlib
2222
F = FiniteField (0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F)
23-
G_DER = '0479be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8'
24-
G2 = EllipticCurve ([F (0), F (7)]).lift_x(F(int(hashlib.sha256(G_DER.decode('hex')).hexdigest(),16)))
25-
print('%x %x' % G2.xy())
23+
G = '0479be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8'
24+
H = EllipticCurve ([F (0), F (7)]).lift_x(F(int(hashlib.sha256(G.decode('hex')).hexdigest(),16)))
25+
print('%x %x' % H.xy())
2626
*/
2727
static const secp256k1_generator secp256k1_generator_h_internal = {{
2828
0x50, 0x92, 0x9b, 0x74, 0xc1, 0xa0, 0x49, 0x54, 0xb7, 0x8b, 0x4b, 0x60, 0x35, 0xe9, 0x7a, 0x5e,

0 commit comments

Comments
 (0)