Go to file
dependabot[bot] 592a444e79
Bump actions/setup-java from 3.13.0 to 4.0.0 in /.github/actions/setup (#1299)
Bumps [actions/setup-java](https://github.com/actions/setup-java) from 3.13.0 to 4.0.0.
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](0ab4596768...387ac29b30)

- dependency-name: actions/setup-java
  dependency-type: direct:production
  update-type: version-update:semver-major

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-30 09:08:23 +01:00
.github Bump actions/setup-java from 3.13.0 to 4.0.0 in /.github/actions/setup (#1299) 2023-11-30 09:08:23 +01:00
.idea [#971] Refactor Rust FFI to separate module 2023-05-18 07:36:15 -04:00
.run [#971] Refactor Rust FFI to separate module 2023-05-18 07:36:15 -04:00
backend-lib Replace Sapling balance and scan progress FFIs with wallet summary FFI 2023-11-08 10:57:23 +01:00
build-conventions [#1194][#1195] Compose + AGP dependency update 2023-09-01 08:48:54 +02:00
darkside-test-lib [#1225] Disable deprecated darkside tests 2023-09-08 20:23:37 +02:00
demo-app [#1273] 10_000-ZAT Miners fee 2023-10-02 12:49:36 +02:00
demo-app-benchmark-test [#1197] Androidx Updates 2023-09-01 15:50:28 +02:00
docs [#1120] Update doc on supported java versions 2023-07-17 13:48:54 +02:00
gradle/wrapper [#1178] Gradle 8.3 2023-08-31 10:11:52 +02:00
lightwallet-client-lib Migrate to latest Rust revision follow-up changes 2023-09-08 20:19:51 +02:00
sdk-incubator-lib [#1095] PersistableWallet endpoint API 2023-09-28 09:54:27 +02:00
sdk-lib [#1294] Checkpoints update 2023-11-08 15:22:07 +01:00
tools [#1066] Detekt enhancement 2023-06-20 11:26:38 +02:00
.gitignore [#1180] Frequent SbS synchronization restarting 2023-09-08 20:19:51 +02:00
CHANGELOG.md [#1295] SDK release v2.0.3 2023-11-08 15:22:45 +01:00
CONTRIBUTING.md [#495] Update Contributing Guidelines "Commit Messages" (#496) 2022-04-28 14:31:49 -04:00
LICENSE [#1180] Frequent SbS synchronization restarting 2023-09-08 20:19:51 +02:00
MIGRATIONS.md [#971] Refactor Rust FFI to separate module 2023-05-18 07:36:15 -04:00
README.md Documentation update 2023-09-08 20:28:49 +02:00
build.gradle.kts [#921] AGP 8.0.2 2023-06-09 15:18:11 +02:00
gradle.properties [#1295] SDK release v2.0.3 2023-11-08 15:22:45 +01:00
gradlew [#1178] Gradle 8.3 2023-08-31 10:11:52 +02:00
gradlew.bat [#796] Gradle 7.6 2022-12-15 16:17:28 +01:00
responsible_disclosure.md Added gmale suggestion of hyphentation. 2021-01-26 15:12:53 -08:00
rust-toolchain.toml Add a `rust-toolchain.toml` file 2023-09-22 18:05:52 -06:00
settings.gradle.kts [#1278] Adopt BIP-39 library v1.0.6 2023-10-02 19:41:54 +02:00


license Maven Central

This is a beta build and is currently under active development. Please be advised of the following:

  • This code currently is not audited by an external security auditor, use it at your own risk
  • The code has not been subjected to thorough review by engineers at the Electric Coin Company
  • We are actively changing the codebase and adding features where/when needed

🔒 Security Warnings

  • The Zcash Android Wallet SDK is experimental and a work in progress. Use it at your own risk.
  • Developers using this SDK must familiarize themselves with the current threat model, especially the known weaknesses described there.

Zcash Android SDK

This lightweight SDK connects Android to Zcash, allowing third-party Android apps to send and receive shielded transactions easily, securely and privately.

Different sections of this repository documentation are oriented to different roles, specifically Consumers (you want to use the SDK) and Maintainers (you want to modify the SDK).

Note: This SDK is designed to work with lightwalletd. As either a consumer of the SDK or developer, you'll need a lightwalletd instance to connect to. These servers are maintained by the Zcash community.

Note: Because we have not deployed a non-beta release of the SDK yet, version numbers currently follow a variation of semantic versioning. Generally a non-breaking change will increment the beta number while a breaking change will increment the minor number. 1.0.0-beta01 -> 1.0.0-beta02 is non-breaking, while 1.0.0-beta01 -> 1.1.0-beta01 is breaking. This is subject to change.

Zcash Networks

"mainnet" (main network) and "testnet" (test network) are terms used in the blockchain ecosystem to describe different blockchain networks. Mainnet is responsible for executing actual transactions within the network and storing them on the blockchain. In contrast, the testnet provides an alternative environment that mimics the mainnet's functionality to allow developers to build and test projects without needing to facilitate live transactions or the use of cryptocurrencies, for example.

The Zcash testnet is an alternative blockchain that attempts to mimic the mainnet (main Zcash network) for testing purposes. Testnet coins are distinct from actual ZEC and do not have value. Developers and users can experiment with the testnet without having to use valuable currency. The testnet is also used to test network upgrades and their activation before committing to the upgrade on the main Zcash network. For more information on how to add testnet funds visit Testnet Guide or go right to the Testnet Faucet.

This SDK supports both mainnet and testnet. Further details on switching networks are covered in the remaining documentation.


If you're a developer consuming this SDK in your own app, see Consumers.md for a discussion of setting up your app to consume the SDK and leverage the public APIs.

A primitive example to exercise the SDK exists in this repo, under Demo App.

Secant Sample Wallet is a more comprehensive sample application.

Maintainers and Contributors

If you're building the SDK from source or modifying the SDK:

  • Setup.md to configure building from source
  • Architecture.md to understand the high level architecture of the code
  • CI.md to understand the Continuous Integration build scripts
  • PUBLISHING.md to understand our deployment process

Note that we aim for the main branch of this repository to be stable and releasable. We continuously deploy snapshot builds after a merge to the main branch, then manually deploy release builds. Our continuous deployment of snapshots implies two things:

  • A pull request containing API changes should also bump the version
  • Each pull request should be stable and ready to be consumed, to the best of your knowledge. Gating unstable functionality behind a flag is perfectly acceptable

Known Issues

  1. Intel-based machines may have trouble building in Android Studio. The workaround is to add the following line to ~/.gradle/gradle.properties: ZCASH_IS_DEPENDENCY_LOCKING_ENABLED=false
  2. During builds, a warning will be printed that says "Unable to detect AGP versions for included builds. All projects in the build should use the same AGP version." This can be safely ignored. The version under build-conventions is the same as the version used elsewhere in the application.
  3. Android Studio will warn about the Gradle checksum. This is a known issue and can be safely ignored.

Unstable Features

Spend-before-Sync compact blocks synchronization algorithm

CompactBlockProcessor now processes compact blocks from the lightwalletd server in non-linear order with the Spend-before-Sync algorithm. This feature speeds up discovering the wallet's spendable balance. Please note that this new block synchronization algorithm is still under development.