-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
45f4daf
commit 9bc9c74
Showing
9 changed files
with
52 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
use flake |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
__pycache__/ | ||
.direnv/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,20 @@ | ||
# ledger-unplugged-setup | ||
Tool to setup a Ledger Unplugged applet | ||
# Ledger Unplugged Setup | ||
|
||
Tool to setup the [Ledger Unplugged applet](https://github.com/VivoKey/apex-ledger-unplugged). To generate and install attestation certificates, please use [fido-attestation-loader](https://github.com/DangerousThings/fido-attestation-loader) in `ledger` mode. | ||
## Setup | ||
|
||
Install [Python 3](https://www.python.org/downloads/) and Pip (usually packaged with Python), both are probably available via your package manager. Use Pip in the terminal to install the requirements: | ||
|
||
``` | ||
pip install -r requirements.txt | ||
``` | ||
|
||
Required modules are `cryptography`, `asn1`, and `pyscard`. The executable might also be called `pip3`. If you use NixOS, Flake and EnvRC files are provided. | ||
|
||
## Complete Commandline Reference | ||
|
||
Use `./setup.py -hd` to print this information. | ||
|
||
``` | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
inputs = { | ||
nixpkgs.url = "github:nixos/nixpkgs"; | ||
}; | ||
|
||
outputs = { self, nixpkgs }: | ||
let | ||
pkgs = nixpkgs.legacyPackages.x86_64-linux; | ||
in | ||
{ | ||
devShell.x86_64-linux = | ||
pkgs.mkShell { | ||
shellHook = '' | ||
''; | ||
|
||
buildInputs = with pkgs; [ | ||
(python3.withPackages (ps: with ps; [ | ||
cryptography | ||
asn1 | ||
pyscard | ||
])) | ||
]; | ||
}; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#!/usr/bin/env python3 |
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
cryptography==37.0.4 | ||
asn1==2.6.0 | ||
pyscard==2.0.3 |