Skip to content

Commit

Permalink
bugfix encoding error
Browse files Browse the repository at this point in the history
  • Loading branch information
littleskunk committed Nov 29, 2015
1 parent 0a98e28 commit fc30de0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion btctxstore/control.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ def _add_recovery_params(i, compressed, sigdata):
params = 27 # signature parameters
params += i # add recovery parameter
params += 4 if compressed else 0 # add compressed flag
return struct.pack(">B", params) + sigdata
return struct.pack(">B".encode('ascii'), params) + sigdata


def sign_data(testnet, data, key):
Expand Down

0 comments on commit fc30de0

Please sign in to comment.