Skip to content

Commit e44d6f5

Browse files
author
Bertrand256
committed
2 parents 61aaf4d + eb57d50 commit e44d6f5

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ Building/Installing on FreeBSD
2727

2828
On FreeBSD you can install the packages:
2929

30-
pkg install security/py-btchip
30+
pkg install security/py-btchip-python
3131

3232
or build via ports:
3333

34-
cd /usr/ports/security/py-btchip
34+
cd /usr/ports/security/py-btchip-python
3535
make install clean
3636

3737

btchip/btchipUtils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,14 @@ def format_transaction(dongleOutputData, trustedInputsAndInputScripts, version=0
4343
newInput = bitcoinInput()
4444
newInput.prevOut = item[0][4:4+36]
4545
newInput.script = item[1]
46-
if len(item > 2):
46+
if len(item) > 2:
4747
newInput.sequence = bytearray(item[2].decode('hex'))
4848
else:
4949
newInput.sequence = bytearray([0xff, 0xff, 0xff, 0xff])
5050
transaction.inputs.append(newInput)
5151
result = transaction.serialize(True)
5252
result.extend(dongleOutputData)
53-
writeUint32BE(lockTime, result)
53+
writeUint32LE(lockTime, result)
5454
return bytearray(result)
5555

5656
def get_regular_input_script(sigHashtype, publicKey):

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
here = dirname(__file__)
88
setup(
99
name='btchip-python',
10-
version='0.1.23',
10+
version='0.1.24',
1111
author='BTChip',
1212
author_email='hello@ledger.fr',
1313
description='Python library to communicate with Ledger Nano dongle',

0 commit comments

Comments
 (0)