This file contains hidden or 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
# 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> |
This file contains hidden or 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
class Test(): | |
def out_literals() -> (int128, address, bytes[10]) : constant | |
@public | |
def out_literals() -> (int128, address, bytes[10]): | |
return 1, 0x0000000000000000000000000000000000000000, "random" | |
@public |