Closed theStack closed 5 months ago
The line calculating H (in particular, the expression G.decode('hex')) fails with the following error message on Sage 9.5:
G.decode('hex')
AttributeError: 'str' object has no attribute 'decode'
Fix that by converting the hex-string to bytes using bytes.fromhex.
bytes.fromhex
(Noticed while reviewing https://github.com/bitcoin/bitcoin/pull/30048 which picks this code snippet comment up.)
The line calculating H (in particular, the expression
G.decode('hex')
) fails with the following error message on Sage 9.5:Fix that by converting the hex-string to bytes using
bytes.fromhex
.(Noticed while reviewing https://github.com/bitcoin/bitcoin/pull/30048 which picks this code snippet comment up.)