Skip to content

Instantly share code, notes, and snippets.

Avatar

Wolfgang Welz Wollac

  • Berlin, Germany
View GitHub Profile
View Bolos make
alias bmake='sudo docker run --rm -t -u "$(id -u):$(id -g)" -v "$(pwd):/project" -e BOLOS_ENV="/opt/bolos" -e BOLOS_SDK="/project/dev/sdk/nanos-secure-sdk" zondax/ledger-docker-bolos make -C /project'
@Wollac
Wollac / snaps-cleanup.sh
Created Oct 24, 2018
Remove all old versions of snaps
View snaps-cleanup.sh
#!/bin/bash
# Removes old revisions of snaps
# CLOSE ALL SNAPS BEFORE RUNNING THIS
set -eu
snap list --all | awk '/disabled/{print $1, $3}' |
while read snapname revision; do
snap remove "$snapname" --revision="$revision"
done
@Wollac
Wollac / guard-base.js
Last active Apr 8, 2018
Proposed Romeo Guard generic interface for security modules
View guard-base.js
class Guard {
constructor ({ ...anyArguments }) {
// Do the initialization work
// Arguments depend on the requirements of the specific Guard module.
}
// Returns: string
getSymmetricKey() {
// Returns the key for encrypting/decrypting arbitrary data.
@Wollac
Wollac / ledger-api.md
Created Apr 6, 2018
Documentation of the APDU Ledger Nano S API
View ledger-api.md

APDU Ledger API

  • Everything is encoded in Little-Endian without any padding or alignment.
  • Strings have a fixed length but can be null-terminated if they are shorter.
  • All integer numbers are always encoded in 8 bytes using two's complement representation.
  • Boolean values are encoded in one byte, with 0x00 meaning false and any other value meaning true.
  • IOTA addresses are always transferred in their 81 character base-27 encoding without checksum information.

Set the active IOTA seed

@Wollac
Wollac / keybase.md
Last active Sep 6, 2016
My keybase.io gist to verify my GitHub account
View keybase.md

Keybase proof

I hereby claim:

  • I am Wollac on github.
  • I am wollac (https://keybase.io/wollac) on keybase.
  • I have a public key whose fingerprint is 91AE 4D70 C63D 67A4 E726 EACB F2DA 019A 2C66 3391

To claim this, I am signing this object: