Giter Club home page Giter Club logo

desc2addr's Introduction

desc2addr

desc2addr is a simple cli tool used for generate receive/change addresses from a Liana descriptor.

Build

Install Rust toolchain (see here)

and run this in this repo:

cargo build --release

the binary will be in target/release

Usage

Usage: desc2addr [OPTIONS] --descriptor <DESCRIPTOR>

Options:
  -d, --descriptor <DESCRIPTOR>  The descriptor to generate address from
  -s, --start <START>            Starting index
  -c, --count <COUNT>            Address count
  -h, --help                     Print help

Example

$ desc2addr -d "wsh(or_d(pk([d4ab66f1/48'/1'/0'/2']tpubDEXYN145WM4rVKtcWpySBYiVQ229pmrnyAGJT14BBh2QJr7ABJswchDicZfFaauLyXhDad1nCoCZQEwAW87JPotP93ykC9WJvoASnBjYBxW/<0;1>/*),and_v(v:pkh([33fa0ffc/48'/1'/0'/2']tpubDEqzYAym2MnGqKdqu2ZtGQkDTSrvDWCrcoamspjRJR78nr8w5tAgu371r8LtcyWWWXGemenTMxmoLhQM3ww8gUfobBXUWxLEkfR7kGjD6jC/<0;1>/*),older(65535))))#r5c5gqy8" -s 2 -c 2
[
    {
        "index": 2,
        "receive": "tb1qsxwhjg2uue523wp5j4ysql86msexvmtxca655klkqq6w6rz0jytqtd42nu",
        "change": "tb1qk8yam0x25fxttck0kzpdsrwhsw23mfxf7gdhmhn9sa23al4elu9sye6aah"
    },
    {
        "index": 3,
        "receive": "tb1qm25c3nztw6z0zp6mpq05380z4s5fql7q7rcs7rxufu4js4z67stq59nt22",
        "change": "tb1qulgz2k6zjj8m4nxa2hlkzsyvemh6kacgzr3k2p0qz7en0033vw5qkvm25q"
    }
]

desc2addr's People

Contributors

pythcoiner avatar

Watchers

 avatar

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.