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
from ledgerblue.comm import getDongle, CommException | |
import asyncio | |
import websockets | |
import json | |
import binascii | |
dongle = None | |
async def hidProxy(websocket, path): | |
global dongle |
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
import wallycore | |
import binascii | |
import argparse | |
def get_public_address(key): | |
hashed = wallycore.hash160(wallycore.bip32_key_get_pub_key(key)) | |
return wallycore.base58_from_bytes(bytearray([0x00]) + hashed, wallycore.BASE58_FLAG_CHECKSUM) | |
def test_path(mainKey, path): | |
testKey = wallycore.bip32_key_from_parent_path(mainKey, path, wallycore.BIP32_FLAG_SKIP_HASH) |
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
group = publishedGroupId | |
version = libraryVersion | |
install { | |
repositories.mavenInstaller { | |
pom.project { | |
packaging 'aar' | |
groupId publishedGroupId | |
artifactId artifact |
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
void derive(cx_curve_t curve, unsigned int *path, unsigned int pathLength, | |
unsigned char *privateKey, unsigned char *chain) { | |
unsigned char tmpPrivateChain[64]; | |
unsigned int i; | |
cx_ecfp_private_key_t tmpEcdsaPrivate; | |
cx_curve_domain_t *domain = cx_ecfp_get_domain(curve); | |
os_memmove(tmpPrivateChain, privateKey, 32); | |
os_memmove(tmpPrivateChain + 32, chain, 32); |
I hereby claim:
- I am btchip on github.
- I am nicolab (https://keybase.io/nicolab) on keybase.
- I have a public key whose fingerprint is BAE8 8B19 F6E3 2323 6DEB 1AC7 683D 7938 DF55 15CE
To claim this, I am signing this object: