Skip to content
This repository has been archived by the owner on May 14, 2021. It is now read-only.

Latest commit

 

History

History
51 lines (36 loc) · 1.62 KB

README.md

File metadata and controls

51 lines (36 loc) · 1.62 KB

DEPRECATED

Please note that these applications are deprecated. Support has been suspended. Issues and pull-requests are no longer reviewed by our team. Commercial proposals for the development of such applications can be sent to partners@guarda.com

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.