Skip to content

Commit

Permalink
Add boilerplate code
Browse files Browse the repository at this point in the history
  • Loading branch information
StarGate01 committed Oct 7, 2022
1 parent 45f4daf commit 9bc9c74
Show file tree
Hide file tree
Showing 9 changed files with 52 additions and 2 deletions.
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use flake
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
__pycache__/
.direnv/
22 changes: 20 additions & 2 deletions README.md
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.

```
```
25 changes: 25 additions & 0 deletions flake.nix
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
]))
];
};
};
}
1 change: 1 addition & 0 deletions ledger.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#!/usr/bin/env python3
Empty file added ledger/__init__.py
Empty file.
Empty file added ledger/argparser.py
Empty file.
Empty file added ledger/setup.py
Empty file.
3 changes: 3 additions & 0 deletions requirements.txt
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

0 comments on commit 9bc9c74

Please sign in to comment.