OutCast3k / coinbin

Javascript Bitcoin Wallet. Supports Multisig, Stealth, HD, SegWit, Bech32, Time Locked Addresses, RBF and more!
https://coinb.in/
MIT License
906 stars 621 forks source link

Add support for Zcash? #75

Open Voluntary-zcash opened 7 years ago

Voluntary-zcash commented 7 years ago

Zcash is an actively developed and well supported new currency that shares Bitcoin's codebase. At this time, the bulk of third party support is focused on mining software - leaving a vacuum for most other sofware and services. I'd particularly like to be able to create and broadcast Zcash transactions via a web interface and I think coinbin is a very good candidate for that. I've made a similar post on the Zcash forum - https://forum.z.cash/t/interest-in-coinbin-to-add-zcash-support/13951

dabura667 commented 7 years ago

In case anyone reading is unaware, ZCash would require a ground-up implementation of tons of heavy crypto that takes extremly long amounts of time to perform even with compiled binaries.

Browser javascript would take significantly longer.

Pull requests are welcome, though.

Voluntary-zcash commented 7 years ago

I can understand how people might have that impression but that assessment would only be true of supporting 'shielded transactions'. Zcash also has 'transparent transactions' that are implemented just like regular Bitcoin transactions. My initial suggestion for support of Zcash was only for the significantly easier goal of implementing these transparent transactions.

dabura667 commented 7 years ago

If it is truly like you say, then look at the pull requests previously for bitcoin based altcoins and just replace the info with zcash info and make another pull request.

If you're not sure, then it will require time from developers familiar to the coinbin repo to investigate how to implement zcash.

It would help a lot if you can make a pull request instead or at least give us specifics on the protocol.

Voluntary-zcash commented 7 years ago

I'm afraid that co-operative development (github etc) is beyond me - as is java / javascript. But I can tell you that one particular little hurdle with Zcash is that its transparent addresses have a two-byte prefix. See section 5.6 of the protocol pdf linked here: https://github.com/zcash/zcash/wiki/specification

Voluntary-zcash commented 7 years ago

This link: https://z.cash/support/zig.html was suggested by one of the Zcash contributors on a forum thread. https://forum.z.cash/t/zcash-remains-poorly-understood/