Coder Social home page Coder Social logo

bdk-cli-tutorial's People

Contributors

futurepaul avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

thibistaken rggh

bdk-cli-tutorial's Issues

using trezor instead coldcard

I'm doing the tutorial with a trezor instead a coldcard but is not working, let me know what I am doing wrong

$ hwi -t "trezor" --chain test getdescriptors|jq
{
  "receive": [
    "pkh([a51660d6/44h/1h/0h]tpubDDkvjEEMSkpZCtiKwxv1HrSgwAj2VEwRRpvfHz5eLokZq3psmSadzcMUy5xJCmjK4hUhCYQWzznqUm9tEJ9CDpMxWNRdgVeSzGn8h7W6MzY/0/*)#xxn73406",
    "sh(wpkh([a51660d6/49h/1h/0h]tpubDC61Vht4qu2ZxjtvjyUTPqmD4yEWzRBYMJ5a7MDaJSpm4jRMwgjmMwLnU2yaUhduemV5ug6YvEbNpuAx3FN4tMTGpeceE4iEX4JcU3G4gYr/0/*))#ernjye6q",
    "wpkh([a51660d6/84h/1h/0h]tpubDC5gp5M6R1FSi6m74utezoTB7494xPxqerVXZvpJupyWCnkHXZY5tZj5ohkbJaDCuWNoZDy4LwLt1XRaro3NPyY5M6hvV8JLb9jHh5sSyHq/0/*)#w7wkvzsa"
  ],
  "internal": [
    "pkh([a51660d6/44h/1h/0h]tpubDDkvjEEMSkpZCtiKwxv1HrSgwAj2VEwRRpvfHz5eLokZq3psmSadzcMUy5xJCmjK4hUhCYQWzznqUm9tEJ9CDpMxWNRdgVeSzGn8h7W6MzY/1/*)#hjklvqlz",
    "sh(wpkh([a51660d6/49h/1h/0h]tpubDC61Vht4qu2ZxjtvjyUTPqmD4yEWzRBYMJ5a7MDaJSpm4jRMwgjmMwLnU2yaUhduemV5ug6YvEbNpuAx3FN4tMTGpeceE4iEX4JcU3G4gYr/1/*))#vzayux0l",
    "wpkh([a51660d6/84h/1h/0h]tpubDC5gp5M6R1FSi6m74utezoTB7494xPxqerVXZvpJupyWCnkHXZY5tZj5ohkbJaDCuWNoZDy4LwLt1XRaro3NPyY5M6hvV8JLb9jHh5sSyHq/1/*)#l2th3hq9"
  ]
}

I set the wpkh receive descriptor on DESC and wpkh internal to CHANGE

DESC="wpkh([a51660d6/84h/1h/0h]tpubDC5gp5M6R1FSi6m74utezoTB7494xPxqerVXZvpJupyWCnkHXZY5tZj5ohkbJaDCuWNoZDy4LwLt1XRaro3NPyY5M6hvV8JLb9jHh5sSyHq/0/*)#w7wkvzsa"
CHANGE="wpkh([a51660d6/84h/1h/0h]tpubDC5gp5M6R1FSi6m74utezoTB7494xPxqerVXZvpJupyWCnkHXZY5tZj5ohkbJaDCuWNoZDy4LwLt1XRaro3NPyY5M6hvV8JLb9jHh5sSyHq/1/*)#l2th3hq9"
$ target/debug/bdk-cli receive $DESC --index 0
Syncing...
underived descriptor: wpkh([a51660d6/84'/1'/0']tpubDC5gp5M6R1FSi6m74utezoTB7494xPxqerVXZvpJupyWCnkHXZY5tZj5ohkbJaDCuWNoZDy4LwLt1XRaro3NPyY5M6hvV8JLb9jHh5sSyHq/0/*)#a03fkc87
derived descriptor: wpkh([a51660d6/84'/1'/0']tpubDC5gp5M6R1FSi6m74utezoTB7494xPxqerVXZvpJupyWCnkHXZY5tZj5ohkbJaDCuWNoZDy4LwLt1XRaro3NPyY5M6hvV8JLb9jHh5sSyHq/0/0)#qu56tmp0
index: 0
address: tb1qjth6lw5lwhsxx9qmj9006j8nqyrygr9ucq9fzv

Then I try to check the address but I get this error

$ hwi -t "trezor" displayaddress --desc "wpkh([a51660d6/84'/1'/0']tpubDC5gp5M6R1FSi6m74utezoTB7494xPxqerVXZvpJupyWCnkHXZY5tZj5ohkbJaDCuWNoZDy4LwLt1XRaro3NPyY5M6hvV8JLb9jHh5sSyHq/0/0)#qu56tmp0"
{"error": "Key in descriptor does not match device: wpkh([a51660d6/84'/1'/0']tpubDC5gp5M6R1FSi6m74utezoTB7494xPxqerVXZvpJupyWCnkHXZY5tZj5ohkbJaDCuWNoZDy4LwLt1XRaro3NPyY5M6hvV8JLb9jHh5sSyHq/0/0)#qu56tmp0", "code": -7}

What I am doing wrong?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.