Giter VIP home page Giter VIP logo

zecpaperwallet's People

Contributors

aarnott avatar adityapk00 avatar howardwu avatar rex4539 avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

zecpaperwallet's Issues

ViewKey (FVK, IVK)

It would be so cool if viewkeys were generated along with the addresses & shown as QRcode :-)

Lots of benefits - from showing users how they can monitor a paperwallet without losing security, apps can scan QRcode viewkeys to join services, lots of good stuff.

error: failed to select a version for the requirement `aes = "^0.2"`

Hi,

I'm trying to compile zec paper wallet from code but it's keep giving me error for aes dependency. I checked on https://crates.io/crates/aes/versions which shows the specific version of aes which is used at git hash of librustzcash dependency got deleted about 3 years ago.

I'm not a rust native programmer. Can you please help fix this issue?
Would very much appreciate your help on it.

Thanks
Satinder

Her the log trying to compile zecpaperwallet as of current state:

➜  Downloads git clone https://github.com/adityapk00/zecpaperwallet.git
Cloning into 'zecpaperwallet'...
remote: Enumerating objects: 768, done.
remote: Total 768 (delta 0), reused 0 (delta 0), pack-reused 768
Receiving objects: 100% (768/768), 523.41 KiB | 933.00 KiB/s, done.
Resolving deltas: 100% (413/413), done.
➜  Downloads cd zecpaperwallet/cli
➜  cli git:(master) cargo build --release
    Updating crates.io index
    Updating git repository `https://github.com/zcash/librustzcash`
error: failed to select a version for the requirement `aes = "^0.2"`
candidate versions found which didn't match: 0.8.1, 0.8.0, 0.7.5, ...
location searched: crates.io index
required by package `zcash_primitives v0.0.0 (https://github.com/zcash/librustzcash?rev=5a48d179b8434a0318e7e19dda506e245a904092#5a48d179)`
    ... which satisfies git dependency `zcash_primitives` of package `zecpaperlib v0.1.0 (/Users/satinder/Downloads/zecpaperwallet/lib)`
    ... which satisfies path dependency `zecpaperlib` of package `zecpaperwallet v0.1.0 (/Users/satinder/Downloads/zecpaperwallet/cli)`
➜  cli git:(master)

ZIP-32 zviewkey_prefix parameters

On line 65 and line 74 of paper.rs, the zviewkey_prefix parameter values are reversed for testnet and mainnet:

if is_testnet {
        CoinParams {
            taddress_version : [0x1D, 0x25],
            tsecret_prefix   : [0xEF],
            zaddress_prefix  : "ztestsapling".to_string(),
            zsecret_prefix   : "secret-extended-key-test".to_string(),
            zviewkey_prefix  : "zviews".to_string(),
            cointype         : 1
        }
    } else {
        CoinParams {
            taddress_version : [0x1C, 0xB8],
            tsecret_prefix   : [0x80],
            zaddress_prefix  : "zs".to_string(),
            zsecret_prefix   : "secret-extended-key-main".to_string(),
            zviewkey_prefix  : "zviewtestsapling".to_string(),
            cointype         : 133
        }
    }

I have confirmed this with Section 5.6.7 of the Zcash protocol PDF:

For incoming viewing keys on the production network, the Human-Readable Part is “zviews”. For incoming viewing keys on the test network, the Human-Readable Part is “zviewtestsapling”.

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.