/zcash-SPV

Zcash Grant SPV library (Sapling)

Primary LanguageJavaMIT LicenseMIT

Zcash SPV library by Guarda

About

Example android app. Only t-addresses now available. Just import project in your IDE and build.

Installation

Add this folder in your project:

zcash-SPV/tree/master/app/src/main/java/com/gravilink/zcash

and delete:

zcash-SPV/blob/master/app/src/main/java/com/gravilink/zcash/TestActivity.java

Usage

ZCashWalletManager.java has folowing public methods:

  • generateNewPrivateKey_taddr
  • publicKeyFromPrivateKey_taddr
  • getBalance_taddr
  • createTransaction_taddr
  • pushTransaction_taddr
  • getTransactionHistory_taddr
  • importWallet_taddr
  • getTransactionCache

Before using generateNewPrivateKey_taddr BrainKeyDict must be initialized with BrainKeyDict.init().

Overwinter

Method createTransaction_taddr() has a field expiryHeight. From 0 to 499999999 (inclusive). By default is 0 (no limit). Or use constant EXPIRY_HEIGHT_NO_LIMIT.

Sapling

New v4 transparent transactions are supported.

Now the library supports only v4 transactions (https://github.com/zcash/zips/blob/master/zip-0243.rst#specification)

License

Library are licensed under the MIT License.

Enjoy! Guarda Team hopes you will like using our lib as much as we liked creating them.