Skip to content

Commit

Permalink
Coinkite Tapsigner
Browse files Browse the repository at this point in the history
  • Loading branch information
avirgovi authored and scgbckbone committed Jun 21, 2022
1 parent 0e6934e commit 834f300
Show file tree
Hide file tree
Showing 11 changed files with 903 additions and 12 deletions.
26 changes: 26 additions & 0 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,19 @@ device_matrix_template: &DEVICE_MATRIX_TEMPLATE
- pushd test/work/firmware; git am ../../data/coldcard-multisig.patch; popd
- poetry run pip install -r test/work/firmware/requirements.txt
- pip install -r test/work/firmware/requirements.txt
- env:
DEVICE: --tapsigner
depends_on:
- Tapsigner Sim Builder
- dist_builder
- bitcoind_builder
fetch_sim_script:
- wget -nv "https://api.cirrus-ci.com/v1/artifact/build/$CIRRUS_BUILD_ID/Tapsigner Sim Builder/sim/tapsigner.tar.gz"
- wget -nv "https://api.cirrus-ci.com/v1/artifact/build/$CIRRUS_BUILD_ID/bitcoind_builder/bitcoin/bitcoin.tar.gz"
- tar -xvf "bitcoin.tar.gz"
sim_install_script:
- pushd test/work; git clone https://github.com/coinkite/coinkite-tap-proto.git; popd
- poetry run pip install -r test/work/coinkite-tap-proto/emulator/requirements.txt
- env:
DEVICE: --bitbox01
depends_on:
Expand Down Expand Up @@ -130,6 +143,7 @@ task:
hwilib/descriptor.py
hwilib/devices/bitbox02.py
hwilib/devices/coldcard.py
hwilib/devices/tapsigner.py
hwilib/devices/digitalbitbox.py
hwilib/devices/jade.py
hwilib/devices/__init__.py
Expand Down Expand Up @@ -203,6 +217,18 @@ task:
sim_artifacts:
path: "coldcard-mpy.tar.gz"

task:
env:
DEVICE: --tapsigner
name: Tapsigner Sim Builder
sim_work_cache:
folder: test/work/coinkite-tap-proto
build_script:
- cd test; ./setup_environment.sh $DEVICE; cd ..
- tar -czf tapsigner.tar.gz test/work/coinkite-tap-proto
sim_artifacts:
path: "tapsigner.tar.gz"

task:
env:
DEVICE: --bitbox01
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Python 3 is required. The libraries and [udev rules](hwilib/udev/README.md) for

For Ubuntu/Debian:
```
sudo apt install libusb-1.0-0-dev libudev-dev python3-dev
sudo apt install libusb-1.0-0-dev libudev-dev python3-dev swig libpcsclite-dev # swig and libpcsclite only needed for tapsigner
```

For Centos:
Expand Down
4 changes: 3 additions & 1 deletion contrib/build.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ RUN apt-get install -y \
zip \
dos2unix \
g++-mingw-w64-x86-64 \
qt5-default
qt5-default \
libpcsclite-dev \
swig

RUN curl https://pyenv.run | bash
ENV PYENV_ROOT="/root/.pyenv"
Expand Down
1 change: 1 addition & 0 deletions hwilib/devices/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
'keepkey',
'digitalbitbox',
'coldcard',
'tapsigner',
'bitbox02',
'jade'
]

0 comments on commit 834f300

Please sign in to comment.