Git Product home page Git Product logo

bitcoin_signet's People

Contributors

benthecarman avatar miguelmedeiros avatar rsafier avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

bitcoin_signet's Issues

Fix for descriptors in setup_signet.sh

In setup_signet.sh it says that it is not working for descriptors. This is because when putting a private key in a descriptor it needs to be WIF encoded.

here is a bash script for converting

  # Descriptors take private keys in WIF format

  # Add the testnet prefix 'ef'
  prefix_key="ef$PRIVKEY"
  # Double sha256 hash of prefix key
  double_hash=$(echo -n $prefix_key | xxd -r -p | openssl sha256 | awk '{print $2}' | xxd -r -p | openssl sha256 | awk '{print $2}')
  # Take first 4 bytes of double hash as checksum
  checksum=${double_hash:0:8}
  # Append checksum to prefix key
  checksum_key="$prefix_key$checksum"
  # Convert the final key into base58 encoding
  WIF_KEY=$(echo -n $checksum_key | xxd -r -p | base58)

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.