Skip to content

Commit

Permalink
Add comment explaining why the padding was removed
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyOfiesh committed Oct 27, 2015
1 parent 62a4936 commit e59e10d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions armoryengine/ArmoryUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2977,6 +2977,7 @@ def createDERSigFromRS(rBin, sBin):
sInt = binary_to_int(sBin, BIGENDIAN)
if sInt > SECP256K1_ORDER / 2:
sInt = SECP256K1_ORDER - sInt
# Compliance with BIP62 requires no extra padding
sBin = int_to_binary(sInt, endOut=BIGENDIAN)

if binary_to_int(rBin[0])&128>0: rBin = '\x00'+rBin
Expand Down

0 comments on commit e59e10d

Please sign in to comment.