Skip to content

Instantly share code, notes, and snippets.

View drop_shipping_api.md
View derivePassphrase.py
from .comm import getDongle
import argparse
import getpass
def auto_int(x):
return int(x, 0)
parser = argparse.ArgumentParser()
parser.add_argument("--persistent", help="Persist passphrase as secondary PIN", action='store_true')
View deriveOff.py
from ledgerblue.comm import getDongle
from ledgerblue.commException import CommException
dongle = getDongle(True)
apdu = bytes("E0D0000000".decode('hex'))
dongle.exchange(apdu)
View deriveNoAlternate.py
from ledgerblue.comm import getDongle
from ledgerblue.commException import CommException
deriveString = "passphrase"
dongle = getDongle(True)
apdu = bytes("E0D00100".decode('hex')) + chr(len(deriveString)) + bytes(deriveString)
dongle.exchange(apdu)
View deriveAlternate.py
from ledgerblue.comm import getDongle
from ledgerblue.commException import CommException
deriveString = "passphrase"
dongle = getDongle(True)
apdu = bytes("E0D00200".decode('hex')) + chr(len(deriveString)) + bytes(deriveString)
dongle.exchange(apdu)
@EricLarch
EricLarch / onename.txt
Created Mar 9, 2016
OneName verification
View onename.txt
Verifying that +ledgerhq is my blockchain ID. https://onename.com/ledgerhq
View keybase.md

Keybase proof

I hereby claim:

  • I am ericlarch on github.
  • I am ericlarch (https://keybase.io/ericlarch) on keybase.
  • I have a public key whose fingerprint is 9C68 EF27 C6FB C111 3E46 79AE D11B 33D3 43DE 3F99

To claim this, I am signing this object:

@EricLarch
EricLarch / Coinkite app
Last active Aug 29, 2015
JS recipes for Ledger Nano Chrome application (execution in the app console)
View Coinkite app
// Go to Coinkite application
ledger.app.router.go("/apps/coinkite/dashboard/index")
View Pseudo code 3
pause 2**fail_attempts
fail_attempts++
verify_fail_attempts_increment()
if (hardened_compare(pin_entered, PIN)) then
fail_attemps = 0
start_wallet()
end
View Pseudo code 2
if (!regular_compare(pin_entered, PIN)) then
fail_attemps++
pause 2**fail_attemps
else
fail_attemps = 0
start_wallet()
end