Remove leading 0x00 from signature elements, add tx generation script

This commit is contained in:
nolash
2021-02-07 11:55:40 +01:00
parent 2a8782ad04
commit 1af7bdaacd
4 changed files with 158 additions and 1 deletions

View File

@@ -40,6 +40,10 @@ class ReferenceSigner(Signer):
tx.v = v.to_bytes(int(byts), 'big')
tx.r = z[:32]
tx.s = z[32:64]
if tx.r[0] == 0:
tx.r = tx.r[1:]
if tx.s[0] == 0:
tx.r = tx.s[1:]
return z