Add basic code, as extracted from ledger-bitcoin