Skip to content

Instantly share code, notes, and snippets.

class Test():
def out_literals() -> (int128, address, bytes[10]) : constant
@public
def out_literals() -> (int128, address, bytes[10]):
return 1, 0x0000000000000000000000000000000000000000, "random"
@public
@bargst
bargst / ledger.py
Created June 3, 2018 21:08
Python Ledger Account list and sign
# Requirement: pip install ledgerblue
from ledgerblue.comm import getDongle
import struct
ETH_DERIVATION_PATH_PREFIX = "44'/60'/0'/"
class LedgerAccount:
"""
Ledger Ethereum App Protocol Spec is located at:
<https://github.com/LedgerHQ/blue-app-eth/blob/master/doc/ethapp.asc>