guardaco / zcash-SPV

Zcash Grant SPV library (Sapling)

Home Page:https://guarda.co/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Zcash Grant SPV library (Sapling)

https://guarda.co/

License:MIT License


Languages

Language:Java 100.0%