Giter Club home page Giter Club logo

Comments (3)

netiko avatar netiko commented on August 23, 2024

base on https://github.com/lian/bitcoin-ruby/blob/master/lib/bitcoin.rb#L751 , i've been working on a network for litecoin

here where I succeeded to get

    litecoin: {
      address_version: '30',
      p2sh_version: '32',
      p2sh_char: '3',##TODO
      privkey_version: 'b0',
      privkey_compression_flag: '01',##TODO
      extended_privkey_version: "019d9cfe",
      extended_pubkey_version: "019da462",
      compressed_wif_chars: %w(K L),##TODO
      uncompressed_wif_chars: %w(5),##TODO
      protocol_version: 70002
    },
    litecoin_testnet: {
      address_version: '6f',
      p2sh_version: '3a',
      p2sh_char: '2',##TODO
      privkey_version: 'ef',
      privkey_compression_flag: '01',##TODO
      extended_privkey_version: "0436ef7d",
      extended_pubkey_version: "0436f6e1",
      compressed_wif_chars: %w(c),##TODO
      uncompressed_wif_chars: %w(9),##TODO
      protocol_version: 70002
    }

the ##TODO is value I could not find and for with I kept bitcoin's value

with it, I succeed to generate address corresponding to what I could see on https://iancoleman.io/bip39/

from money-tree.

krtschmr avatar krtschmr commented on August 23, 2024

@netiko so would this be ready for production, just enough so we can generate receiving addresses which would equal to the electrum addresses?

from money-tree.

krtschmr avatar krtschmr commented on August 23, 2024

@netiko allright, i have tested it and it's working!

https://github.com/krtschmr/money-tree/blob/master/lib/money-tree/networks.rb

thanks a lot

from money-tree.

Related Issues (20)

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.