Compare commits

...
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

13 Commits
main ... main

  1. 82
      CONTRIBUTING.md
  2. 640
      LICENSE
  3. 19
      README.md
  4. 11
      docs/Architecture.md
  5. 63
      responsible_disclosure.md
  6. 7
      sdk-lib/src/main/assets/co.electriccoin.zcash/checkpoint/mainnet/1430000.json
  7. 7
      sdk-lib/src/main/assets/co.electriccoin.zcash/checkpoint/mainnet/1440000.json
  8. 7
      sdk-lib/src/main/assets/co.electriccoin.zcash/checkpoint/mainnet/1450000.json
  9. 7
      sdk-lib/src/main/assets/co.electriccoin.zcash/checkpoint/mainnet/1460000.json
  10. 7
      sdk-lib/src/main/assets/co.electriccoin.zcash/checkpoint/mainnet/1470000.json
  11. 7
      sdk-lib/src/main/assets/co.electriccoin.zcash/checkpoint/mainnet/1480000.json
  12. 7
      sdk-lib/src/main/assets/co.electriccoin.zcash/checkpoint/mainnet/1490000.json
  13. 7
      sdk-lib/src/main/assets/co.electriccoin.zcash/checkpoint/mainnet/1500000.json
  14. 7
      sdk-lib/src/main/assets/co.electriccoin.zcash/checkpoint/mainnet/1510000.json
  15. 7
      sdk-lib/src/main/assets/co.electriccoin.zcash/checkpoint/mainnet/1520000.json
  16. 7
      sdk-lib/src/main/assets/co.electriccoin.zcash/checkpoint/mainnet/1530000.json
  17. 7
      sdk-lib/src/main/assets/co.electriccoin.zcash/checkpoint/mainnet/1540000.json
  18. 7
      sdk-lib/src/main/assets/co.electriccoin.zcash/checkpoint/mainnet/1550000.json
  19. 7
      sdk-lib/src/main/assets/co.electriccoin.zcash/checkpoint/mainnet/1560000.json
  20. 7
      sdk-lib/src/main/assets/co.electriccoin.zcash/checkpoint/mainnet/1570000.json
  21. 7
      sdk-lib/src/main/assets/co.electriccoin.zcash/checkpoint/mainnet/1580000.json
  22. 7
      sdk-lib/src/main/assets/co.electriccoin.zcash/checkpoint/mainnet/1590000.json
  23. 7
      sdk-lib/src/main/assets/co.electriccoin.zcash/checkpoint/mainnet/1600000.json
  24. 7
      sdk-lib/src/main/assets/co.electriccoin.zcash/checkpoint/mainnet/1610000.json
  25. 7
      sdk-lib/src/main/assets/co.electriccoin.zcash/checkpoint/mainnet/1620000.json
  26. 7
      sdk-lib/src/main/assets/co.electriccoin.zcash/checkpoint/mainnet/1630000.json
  27. 7
      sdk-lib/src/main/assets/co.electriccoin.zcash/checkpoint/mainnet/1640000.json
  28. 7
      sdk-lib/src/main/assets/co.electriccoin.zcash/checkpoint/mainnet/1650000.json
  29. 7
      sdk-lib/src/main/assets/co.electriccoin.zcash/checkpoint/mainnet/1660000.json
  30. 7
      sdk-lib/src/main/assets/co.electriccoin.zcash/checkpoint/mainnet/1670000.json
  31. 7
      sdk-lib/src/main/assets/co.electriccoin.zcash/checkpoint/mainnet/1680000.json
  32. 7
      sdk-lib/src/main/assets/co.electriccoin.zcash/checkpoint/mainnet/1690000.json
  33. 7
      sdk-lib/src/main/assets/co.electriccoin.zcash/checkpoint/mainnet/1700000.json
  34. 7
      sdk-lib/src/main/assets/co.electriccoin.zcash/checkpoint/mainnet/1710000.json
  35. 14
      sdk-lib/src/main/java/cash/z/ecc/android/sdk/ext/ZcashSdk.kt
  36. 3
      sdk-lib/src/main/java/cash/z/ecc/android/sdk/internal/SaplingParamTool.kt

82
CONTRIBUTING.md

@ -9,7 +9,6 @@ Please read it before you start participating.
* [Reporting Security Issues](#reporting-security-issues)
* [Reporting Non Security Issues](#reporting-other-issues)
* [Commit Messages](#commit-messages)
* [Developers Certificate of Origin](#developers-certificate-of-origin)
## Asking Questions
@ -20,7 +19,7 @@ label.
## Reporting Security Issues
If you have discovered an issue with this code that could present a security hazard or wish to discuss a sensitive issue with our security team, please contact security@z.cash [security.asc](https://z.cash/gpg-pubkeys/security.asc). Key fingerprint = AF85 0445 546C 18B7 86F9 2C62 88FB 8B86 D8B5 A68C
If you have discovered an issue with this code that could present a security hazard or wish to discuss a sensitive issue with our security team, please contact us on [Telegram](https://hush.is/tg) or [Matrix](https://hush.is/matrix)
## Reporting Non Security Issues
@ -30,8 +29,6 @@ We always appreciate a well-written, thorough bug report.
Check that the project issues database
doesn't already include that problem or suggestion before submitting an issue.
If you find a match, add a quick "+1" or "I have this problem too."
Doing this helps prioritize the most common problems and requests.
When reporting issues, please include the following:
@ -43,30 +40,11 @@ When reporting issues, please include the following:
This information will help us review and fix your issue faster.
## Pull Requests
We **love** pull requests!
All contributions _will_ be licensed under the MIT license.
Code/comments should adhere to the following rules:
* Every Pull request must have an Issue associated to it. PRs with not
associated with an Issue will be closed
* Code build and Code Lint must pass.
* Names should be descriptive and concise.
* Although they are not mandatory, PRs that include significant testing will be
prioritized.
* All enhancements and bug fixes need to be documented in the CHANGELOG.
* When writing comments, use properly constructed sentences, including
punctuation.
* When documenting APIs and/or source code, don't make assumptions or make
implications about race, gender, religion, political orientation or anything
else that isn't relevant to the project.
* Remember that source code usually gets written once and read often: ensure
the reader doesn't have to make guesses. Make sure that the purpose and inner
logic are either obvious to a reasonably skilled professional, or add a
comment that explains it.
## Code contributions
We **love** contributions!
All contributions _will_ be licensed under the GPLv3 license.
## Commit Messages
@ -92,16 +70,7 @@ issue following the criteria described in the preceeding sections.
Every contribution must reference an existing Issue. This issue is important
since it will be directly referenced in the title of your commit.
Although we prefer small PR's. We encourage our contributors to use Squash
commits extensively. Maintainers prefer avoiding _merge commits_ when possible.
It is very much likely that _if accepted_, your contribution will be _squash merged_.
When squashing commits, use your best judgement. In some situations, a refactoring may
be done before actual behavior changes are implemented. It is reasonable to keep such
a refactoring as a separate commit as it both makes review easier and allows for
these refactoring commit SHAs to be added to `.git-blame-ignore-revs`.
### Structuring a PR Commit
### Structuring a Commit
#### Commit Title
The first line of your commit message constitutes its _title_. Maintainers will
@ -123,19 +92,13 @@ optionally you can append the PR # between parenthesis.
#### Commit message's body
Use the body of the commit to bring more context to the change. Usually the bulk
of the problem might be explained in the GitHub Issue. It's a good long term strategy
of the problem might be explained in an issue. It's a good long term strategy
not to rely on such elements. If the project were to change its hosting, much of the
associated "Issues" and "pull requests" will be lost, yet the commit history will
probably be preserved and the context will also be.
If there are followup issues for this commit, consider referencing those as well.
**Use the tools on your favor!**
When opening a Pull Request, GitHub will take the title of your commit as the PR's
title and the body of your PR its description. Having a proper structure on your
commit will make your day shorter.
### Example:
@ -160,32 +123,3 @@ and the body will be added as the description of the PR.
Adding the text `Closes #{issue_number}` will tell GitHub to close the issue when the PR is merged.
Let the machines do their work.
## Developer's Certificate of Origin 1.1
By making a contribution to this project, I certify that:
- (a) The contribution was created in whole or in part by me and I
have the right to submit it under the open source license
indicated in the file; or
- (b) The contribution is based upon previous work that, to the best
of my knowledge, is covered under an appropriate open source
license and I have the right under that license to submit that
work with modifications, whether created in whole or in part
by me, under the same open source license (unless I am
permitted to submit under a different license), as indicated
in the file; or
- (c) The contribution was provided directly to me by some other
person who certified (a), (b) or (c) and I have not modified
it.
- (d) I understand and agree that this project and the contribution
are public and that a record of the contribution (including all
personal information I submit with it, including my sign-off) is
maintained indefinitely and may be redistributed consistent with
this project or the open source license(s) involved.
This contribution guide is inspired on great projects like [AlamoFire](https://github.com/Alamofire/Foundation/blob/master/CONTRIBUTING.md) and [CocoaPods](https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md)

640
LICENSE

@ -1,21 +1,619 @@
The MIT License (MIT)
Copyright (c) 2017-2021 Electric Coin Company
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
GENERAL GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GENERAL General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GENERAL General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GENERAL General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GENERAL GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GENERAL General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GENERAL Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GENERAL Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GENERAL Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GENERAL General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GENERAL General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GENERAL General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GENERAL General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.

19
README.md

@ -1,7 +1,7 @@
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
- The code **has not been subjected to thorough review**
- We **are actively changing** the codebase and adding features where/when needed
🔒 Security Warnings
@ -17,15 +17,14 @@ This lightweight SDK connects Android to Hush, allowing third-party Android apps
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](https://github.com/zcash-hackworks/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 Hush community.
Note: This SDK is designed to work with [lightwalletd](https://git.hush.is/hush/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 Hush community.
lightwalletd v0.1.2 or higher is required.
Note: Because we have not deployed a non-beta release of the SDK yet, version numbers currently follow a variation of [semantic versioning](https://semver.org/). 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.
# Hush 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 Hush testnet is an alternative blockchain that attempts to mimic the mainnet (main Hush 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 Hush network. For more information on how to add testnet funds visit [Testnet Guide](https://zcash.readthedocs.io/en/latest/rtd_pages/testnet_guide.html) or go right to the [Testnet Faucet](https://faucet.zecpages.com/).
This SDK supports both mainnet and testnet. Further details on switching networks are covered in the remaining documentation.
# Consumers
@ -33,9 +32,9 @@ If you're a developer consuming this SDK in your own app, see [Consumers.md](doc
A primitive example to exercise the SDK exists in this repo, under [Demo App](demo-app).
There are also more comprehensive sample walletes:
* [ECC Sample Wallet](https://github.com/zcash/zcash-android-wallet) — A basic sample application.
* [Secant Sample Wallet](https://github.com/zcash/secant-android-wallet) — A more modern codebase written in Compose. This repository is a work-in-progress and is not fully functional yet as of August 2022, although it will be our primary sample application in the future.
There are also more comprehensive wallets:
* [SilentDragonAndroid](https://git.hush.is/hush/SilentDragonAndroid) — Official Hush lite wallet for Android
# Maintainers and Contributors
If you're building the SDK from source or modifying the SDK:
@ -44,9 +43,7 @@ If you're building the SDK from source or modifying the SDK:
* [CI.md](docs/CI.md) to understand the Continuous Integration build scripts
* [PUBLISHING.md](docs/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
Note that we aim for the main branch of this repository to be stable and releasable.
## 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`
@ -64,3 +61,5 @@ We currently rely on mavenLocal publishing for the SDK. Run the following comman
On Windows you may also need to manually create the following directory if build fails for it not existing:
`C:\Users\user\.cargo\git\checkouts\librustzcash-b77c20a46364385a\553c3f6\zcash_client_backend\src\proto`
NOTE: the commit id above may need to be modified, as it changes.

11
docs/Architecture.md

@ -1,5 +1,5 @@
# Overview
From an app developer's perspective, this SDK will encapsulate the most complex aspects of using Zcash, freeing the developer to focus on UI and UX, rather than scanning blockchains and building commitment trees! Internally, the SDK is structured as follows:
From an app developer's perspective, this SDK will encapsulate the most complex aspects of using Hush, freeing the developer to focus on UI and UX, rather than scanning blockchains and building commitment trees! Internally, the SDK is structured as follows:
![SDK Diagram](assets/sdk_diagram_final.png?raw=true "SDK Diagram")
@ -20,16 +20,9 @@ Thankfully, the only thing an app developer has to be concerned with is the foll
| **RustBackend** | Wraps and simplifies the rust library and exposes its functionality to the Kotlin SDK |
# Checkpoints
To improve the speed of syncing with the Zcash network, the SDK contains a series of embedded checkpoints. These should be updated periodically, as new transactions are added to the network. Checkpoints are stored under the [sdk-lib's assets](../sdk-lib/src/main/assets/co.electriccoin.zcash/checkpoint) directory as JSON files. Checkpoints for both mainnet and testnet are bundled into the SDK.
To improve the speed of syncing with the Hush network, the SDK contains a series of embedded checkpoints. These should be updated periodically, as new transactions are added to the network. Checkpoints are stored under the [sdk-lib's assets](../sdk-lib/src/main/assets/co.electriccoin.zcash/checkpoint) directory as JSON files.
To update the checkpoints, see [Checkmate](https://github.com/zcash-hackworks/checkmate).
We generally recommend adding new checkpoints every few weeks. By convention, checkpoints are added in block increments of 10,000 which provides a reasonable tradeoff in terms of number of checkpoints versus performance.
There are two special checkpoints, one for sapling activation and another for orchard activation. These are mentioned because they don't follow the "round 10,000" rule.
* Sapling activation
* Mainnet: 419200
* Testnet: 280000
* Orchard activation
* Mainnet: 1687104
* Testnet: 1842420

63
responsible_disclosure.md

@ -1,63 +0,0 @@
This page is copyright The Electric Coin Company, 2021. It is posted in order to conform to this standard: https://github.com/RD-Crypto-Spec/Responsible-Disclosure/tree/d47a5a3dafa5942c8849a93441745fdd186731e6
# Security Disclosures
## Receiving Disclosures
The Electric Coin Company is committed to working with researchers who submit security vulnerability notifications to us to resolve those issues on an appropriate timeline and perform a coordinated release, giving credit to the reporter if they would like.
Please submit issues to security@z.cash, using the following PGP key:
```
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQENBFaegcoBCAC+G82ZBYYm1GoVn4dKa0WiLYD/Q+BuU89PS1X7A4eOOy8g9yS4
wJKMzB0AxFsH/t85P7pPZwHw3i2gmiJKeIqEGhEBL08D3id2u6ZyCnwDuWs0i6My
MXWTwK5shvE61ZI/KPbjemoOG6MPF5QdrouNqei2Vk+4RjbRCyyS0A59GQi2dNZX
BMwTnHnUZ5qi6T0RFelqJ3dE5Nc/UwJPdAcg71c3b3dMOHjaDBMPB6+fTLBeidV6
5B72nGO3eIYkMUNj+qCQmM/esRkmGmlDH/9WGMBOKCq7Yw3LyEoPOi5cba1m8SN2
xFlNzkUGrlVrwZMF+1UdjvN7BGDypA3Dr/STABEBAAG0JVpjYXNoIFNlY3VyaXR5
IFRlYW0gPHNlY3VyaXR5QHouY2FzaD6JATcEEwEIACEFAlaegcoCGwMFCwkIBwIG
FQgJCgsCBBYCAwECHgECF4AACgkQiPuLhti1poxlRAf/bZ6fhUby5bAbViAO4TzQ
yfbD0ksGeF8MHicPz7HqOYuXAE9GrKnVAOFptwRo94O+iRC5aXhW8OAP+38IWorv
gsAuag7Y8k0nlfNdrJRqqJpjyxtiuv+cd2o5dre8E9PVNE5IPv9qEJA4Zag3snmC
a+O4HAqKeXYddunFq2drLkTRlOwuFkGXJzwi3VSNVYCuuGyezFDuaD45ltmsXgid
jZSdnnc6L1BrEd9LVzahvFV0+fT4bNKQHQDk+f0RTnHed+m9NqAoC9K8ftPTQ/i4
5+W/dXJATztWDrJ7ZevHXGR+RAhMNsT1psvnQsJzMkUz1GMdQOtk4PfuZLGSIiTM
ErkBDQRWnoHKAQgAp+w+xsPJWFdadE6Ok1aZC0Lk1J9xU/cqX1aBlkwi5SynwOkV
Eg1xNHLJMelp13bgDjLRsvaMbsseaCVk3goNln4atNbZpqz6FoM/f8pJx52LFD0j
CFFOVUlGEF0h+KdFr+3JHI+mg+3ifXTD4Dajj4lpu8kR/FQjftcxyttByz01wLRO
sK5BDC856WzHXAJuX6TpX4sGJujzKoLXR5V0SkUopqn9g4aJGnWuNh4kyOQI6fd7
YZyPZhWDrXdgInCKAKAgq8r6hgSDMYFvmflp6+reCfeOe1VFF8q3Foio02YPIrQW
WjjH0w6nOvOKCEtxistz1sP6ZoYq4gR41LOwIQARAQABiQEfBBgBCAAJBQJWnoHK
AhsMAAoJEIj7i4bYtaaMiA4IALIy4xP/Btu86yT3b53t8cfYZddFSO8Nlg+y3EMu
1LchdSOpWgpXCvQ7d4ndWGsuBSmQ+jaRwU2UIkq2iIxf5cg63dJz9grAcF6MXCrO
t5BSowFC4m3RFaEaG6G6SjDVIA0ZEdEMFd9Gzc1ikqbVLyNuJXKmzz0evvbAJgVO
D0nht5ifwLjQxM4olvYHUwtT0wPhniH69ghFo8LQiMgncjaukDzbgANiuj07QYy/
DlzhQUsp1qZvqZnVKqUJ3lFb86b6zoqoRNiUnvP9JB2v3kLG0T39UlcXUFnZJ/4H
CDHCrwSovQRMHtoOWZijBNobO2y1d0FkUpzNlNw44Ssw0Vo=
=6GYS
-----END PGP PUBLIC KEY BLOCK-----
```
## Sending Disclosures
In the case where we become aware of security issues affecting other projects that have never affected Zcash, our intention is to inform those projects of security issues on a best-effort basis.
In the case where we fix a security issue in Zcash that also affects the following neighboring projects, our intention is to engage in responsible disclosures with them as described in https://github.com/RD-Crypto-Spec/Responsible-Disclosure, subject to the deviations described in the section at the bottom of this document.
## Bilateral Responsible Disclosure Agreements
We have set up agreements with the following neighboring projects to share vulnerability information, subject to the deviations described in the next section.
Specifically, we have agreed to engage in responsible disclosures for security issues affecting this repository and others we maintain for the same platform with the following contacts:
- Unstoppable wallet via PGP email to security.hs@protonmail.com
- Nighthawk wallet via their disclosure policy @ https://github.com/nighthawk-apps/nighthawk-wallet-android/blob/master/README.md
## Deviations from the Standard
Zcash is a technology that provides strong privacy. Notes are encrypted to their destination, and then the monetary base is kept via zero-knowledge proofs intended to only be creatable by the real holder of Zcash. If this fails, and a counterfeiting bug results, that counterfeiting bug might be exploited without any way for blockchain analyzers to identify the perpetrator or which data in the blockchain has been used to exploit the bug. Rollbacks to before that point, such as have been executed in some other projects in such cases, are therefore impossible.
The standard describes reporters of vulnerabilities including full details of an issue, in order to reproduce it. This is necessary for instance in the case of an external researcher both demonstrating and proving that there really is a security issue, and that security issue really has the impact that they say it has - allowing the development team to accurately prioritize and resolve the issue.
In the case of a counterfeiting bug, however, just like in CVE-2019-7167, we might decide not to include those details with our reports to partners ahead of coordinated release, so long as we are sure that they are vulnerable.

7
sdk-lib/src/main/assets/co.electriccoin.zcash/checkpoint/mainnet/1430000.json

@ -0,0 +1,7 @@
{
"network": "main",
"height": "1430000",
"hash": "000000066375bf5edfb65bec45cfa47042b47e3aea87da9236da5b9f4ca70f84",
"time": 1689465399,
"saplingTree": "0175dcd1343c9d5e07f3195043b605626f81b88071c31f6a5fc0ae900f170ed205014359d75dc4c94f4048bf44a8a182a18768aa4c60167a1312aae55ea95ead8d56150001c424e72313147674d468d308382167f9812f682b5e9abeed33a21f6911dd2f7301ccde0679ebf8f4f20d9bb2e41f96fc394e106118267757dcf7d8f3336ffcc72b013065dc4f2f9786453772f66c3e71aeea04f38a9773259fb6ffaa71d9e7646802016f4efb90f63de4413a27b774b216cf614bf8b27e4fd041473bde68445d575b3b01ee5b354371c5b9cada16df0c120907ee2928681e9237384d1b49de85cd66b9390126c696517f1dba2a81a0e74099b1f8d3fa2a65ee991344e8fe94d4f53a624c56000001a2fc4b1843af353e9287fe23854906267e892a053f714d1eb472b7f1d3dafe010153aa5aafa9c11464a123d59badb7743bb67fc2686550452df004897abc2ef66401fcc633dd7d6fb7f00d1b2bd8c0a99db4be5c8c6393b84fd36d6b2562db3c60480134f45736d1336cb1f55432e553afb2843f58fbd53a1424f546bbb68f4926ce460000012a5cc87bee766002799c55ceb4811e7f7393a1e6a4cbec47deffc5f5545c0e630129e917c1084ce9790872926426d49c072d65efba4028dc1d29c4ff163f2f794001007357498cf229fb2aa34a72ecff748d7aa6f1a4e486f3eecf8a57673ad0ce340001708c9850eb440b259f233187662c5228804cb4500263949301b6fac8f6428f2301d6f84c424acdb1d10f8cef641662e0f63f954f07fe6199d504a61979c9ba3e13"
}

7
sdk-lib/src/main/assets/co.electriccoin.zcash/checkpoint/mainnet/1440000.json

@ -0,0 +1,7 @@
{
"network": "main",
"height": "1440000",
"hash": "00000001025150e823cedbe98c30f09385017b229bc247420d43854ddb1c4ff0",
"time": 1690223450,
"saplingTree": "01c96fa25dd7e8d53195f97031006d2cb1f2758c4b12fef11b588de57c69784455001501d3c916889978629148d469916a9d9b5770ac23657d69989e3e4fde867ff6c04b016c46a62678cea4266cc095d7f287bb3f5bb5dcc0d408a921d210843cab43227201dc162e6835b6b9e5c930ae8bab60ecf12fe735ae20355e5681d6fb0d78a4254f0001a708465a549e5798486fe87a2dfb0732e35974248cf14ec7840cda4bf5424f6201935fcb60099ad7fdf6b06fe286c5d95e25210e4826ecfe432af130f7eb6da472000001c4954e9df77cc98c76c6ee8c266ddf7bb193e4284cd39f3f9288f55e72cd920300014b8ed9563d4cbd1fd3e278bc201509a95645ff5414ba8b5dc3734cd5dcd966210111921d0b1f05672fb165599bed630e0cf8267e832b4c4ec4e6154e880e100f3f00019309b9363ebf08e38aa5ba8a8937532af004fb2d0c77f0b306b1e928516f702800012a5cc87bee766002799c55ceb4811e7f7393a1e6a4cbec47deffc5f5545c0e630129e917c1084ce9790872926426d49c072d65efba4028dc1d29c4ff163f2f794001007357498cf229fb2aa34a72ecff748d7aa6f1a4e486f3eecf8a57673ad0ce340001708c9850eb440b259f233187662c5228804cb4500263949301b6fac8f6428f2301d6f84c424acdb1d10f8cef641662e0f63f954f07fe6199d504a61979c9ba3e13"
}

7
sdk-lib/src/main/assets/co.electriccoin.zcash/checkpoint/mainnet/1450000.json

@ -0,0 +1,7 @@
{
"network": "main",
"height": "1450000",
"hash": "00000001ba8b62f62c313bad5f3e5e5b1068060e7b52855a703575e8b999e980",
"time": 1690981181,
"saplingTree": "01062fdf962638e40cdf292711483f13aacc7adb20970e698451554eb39f0c96550015018b2a0192536c7b078ebafba23cadc4553ce910882b1d533a2f393440bbea120a015e5702d657da65aae04535f90ba42480be7b9a80b1d407ea55d536e8b7de79150117eb1a826ddd4705151442d3b2d9e148b771ee3bcab6c71e6e2f12572556460900000001b470a160ac7c4cf0474f54d05b4759d67dfc1d53239f7325fc10b3b8e0a70e5800000001f0df59b96f31f8753d8c82b30652e05a95b887ccd20939be6721195307a9647301739a817c8780e31798dab9a36e7a234df3799f85ac127b0191d8033b92c1f005012f3bb696570f0ac464a701f0ba745eb269c66f99026909b1c596234950b2d919019309b9363ebf08e38aa5ba8a8937532af004fb2d0c77f0b306b1e928516f702800012a5cc87bee766002799c55ceb4811e7f7393a1e6a4cbec47deffc5f5545c0e630129e917c1084ce9790872926426d49c072d65efba4028dc1d29c4ff163f2f794001007357498cf229fb2aa34a72ecff748d7aa6f1a4e486f3eecf8a57673ad0ce340001708c9850eb440b259f233187662c5228804cb4500263949301b6fac8f6428f2301d6f84c424acdb1d10f8cef641662e0f63f954f07fe6199d504a61979c9ba3e13"
}

7
sdk-lib/src/main/assets/co.electriccoin.zcash/checkpoint/mainnet/1460000.json

@ -0,0 +1,7 @@
{
"network": "main",
"height": "1460000",
"hash": "00000005153ae6e0e3f6dabd9ae9c3e02cbb2cdd61fc9cc697f94a943d3e7c31",
"time": 1691740887,
"saplingTree": "01d4bf8b5ab1566fbf2c641008a65776866da18d3a90ee79521fac2177c26ca43e01e03d8a0d3b4092d7406f72833dd0e0bafe98920301164c5e7b5c300e01dc4443150001437e540964f73c898e5405a1af51ae34367076bcef86503aae34d92ce289e064000001e238cd66315e1f88b7fca6049bc0c40ec8c5e31ac2d603f79e1358be5aa6e41a00000000000162890d418ca91fc1dce31a115ba58a3d543d3a5ce293549ad698e23e58ed1e6101db4441db6eaac29cd078df0685d7d7124d5d2889664550f0b9cca3c2731df958000001faf6cdafacc60ed1b3b10777af659d02de872c23760ab9284486f92b4670af5a012a5cc87bee766002799c55ceb4811e7f7393a1e6a4cbec47deffc5f5545c0e630129e917c1084ce9790872926426d49c072d65efba4028dc1d29c4ff163f2f794001007357498cf229fb2aa34a72ecff748d7aa6f1a4e486f3eecf8a57673ad0ce340001708c9850eb440b259f233187662c5228804cb4500263949301b6fac8f6428f2301d6f84c424acdb1d10f8cef641662e0f63f954f07fe6199d504a61979c9ba3e13"
}

7
sdk-lib/src/main/assets/co.electriccoin.zcash/checkpoint/mainnet/1470000.json

@ -0,0 +1,7 @@
{
"network": "main",
"height": "1470000",
"hash": "00000001be9faf4c236b5925b9d82a843c98fdecb0db32a7b971c7f0e06ae686",
"time": 1692496311,
"saplingTree": "013fc66f1aaf5428876bcba3c13eaf73c600bcbabdf0c6876f815f547cdafb585c01555aa955ed996be9e1acbdfc1c1c90c66157148baec627d5b1854796c911633c1501ae5f94529f588c2a468e68376c11b671369638bed86f182c787eff05935c276b000001f9efa221186444b30c09adb18f50049cd2e75a55a8e5644669be0ff084d5470501cdeadb4714448e7102061689fa3dcda163270c0fd6e712ef8c0b70d5899cef37014431821f9f977b204a710d621173ea98a612cf1e3bc1d3574af9e0638ec09e5900000152622e13f673b2776139957e1d5ad6cfedfff470f6a35dcace7c2b37076da64c014e096a16bed1a93215733b76a130aaffb9fc0a47d1a6fd497f9b89b64189071e000129121619d51717862f03cacfb05221cebf0118cd359558e20067c5ecccc172500176334579d1b7828cac70c63961ef5ce2c2e057b76812cdaa377e9990f568bc3f0001faf6cdafacc60ed1b3b10777af659d02de872c23760ab9284486f92b4670af5a012a5cc87bee766002799c55ceb4811e7f7393a1e6a4cbec47deffc5f5545c0e630129e917c1084ce9790872926426d49c072d65efba4028dc1d29c4ff163f2f794001007357498cf229fb2aa34a72ecff748d7aa6f1a4e486f3eecf8a57673ad0ce340001708c9850eb440b259f233187662c5228804cb4500263949301b6fac8f6428f2301d6f84c424acdb1d10f8cef641662e0f63f954f07fe6199d504a61979c9ba3e13"
}

7
sdk-lib/src/main/assets/co.electriccoin.zcash/checkpoint/mainnet/1480000.json

@ -0,0 +1,7 @@
{
"network": "main",
"height": "1480000",
"hash": "000000061fc1275ef78b285aec0a73edc82861a0d390503c3b4c5455d8242acc",
"time": 1693253685,
"saplingTree": "01e2c7c111a10f50427bc4bc897e4ec3663d8c8f35aa588e92e7ea044c53b8a7150015000000019f147addb25fa3b22db6d2629ec21d569f97e9cb99e72604d8d2fdb1e0d88c0f01bfcd48547222892d0a02ddb9d5c993ae28595d01e28daea9d75df186ee611e6d000173b557332d245327c0b1472cf4a28e058527f4781a16844931bce099d0a94c4e010c50783bdf7fe4edd6e8676b8ae3ad6770e67601d4b934395d3efe32efee9e5e000001548aea4e8877dfce4d1cf9146c1d995e01365effe75c59793db2eeaec04c112a0191bfe1bc84ec45224de2151bd3ff73c758afd19aba2710a1d5d5c68f9846af670001048eff1e2456fde7d076e192449cf565729879f1ad37393b5b0583c3597b636e01faf6cdafacc60ed1b3b10777af659d02de872c23760ab9284486f92b4670af5a012a5cc87bee766002799c55ceb4811e7f7393a1e6a4cbec47deffc5f5545c0e630129e917c1084ce9790872926426d49c072d65efba4028dc1d29c4ff163f2f794001007357498cf229fb2aa34a72ecff748d7aa6f1a4e486f3eecf8a57673ad0ce340001708c9850eb440b259f233187662c5228804cb4500263949301b6fac8f6428f2301d6f84c424acdb1d10f8cef641662e0f63f954f07fe6199d504a61979c9ba3e13"
}

7
sdk-lib/src/main/assets/co.electriccoin.zcash/checkpoint/mainnet/1490000.json

@ -0,0 +1,7 @@
{
"network": "main",
"height": "1490000",
"hash": "00000002271c1f284ad47cfc27332ea820045602f62381dd10cdfe77cbf73cce",
"time": 1694011030,
"saplingTree": "01ee724ea0ccc38da9b996e7d4324ebc8fa96cf02584226835ed68ecb2734d9d240015000000000000000001731883b430616e3b2f973be6189d6555f14d3a4f4d48576b072bf635390cee210108037602f447ed3d39a212fdbd967e7e2b5a79ecd2f241d571cca1273308a72601acb845b8a7c6a288ec4534bfd55dec73eeb20b3b6b926482ed1bcdf8f205a2240152cbaf618ef392310700621cbd0158fc48718fd6b7933781c4c914f1709b135201a050d10929e616bdb7599d670fc08d44065d2ba307434443bacdfb3a467e391b01048eff1e2456fde7d076e192449cf565729879f1ad37393b5b0583c3597b636e01faf6cdafacc60ed1b3b10777af659d02de872c23760ab9284486f92b4670af5a012a5cc87bee766002799c55ceb4811e7f7393a1e6a4cbec47deffc5f5545c0e630129e917c1084ce9790872926426d49c072d65efba4028dc1d29c4ff163f2f794001007357498cf229fb2aa34a72ecff748d7aa6f1a4e486f3eecf8a57673ad0ce340001708c9850eb440b259f233187662c5228804cb4500263949301b6fac8f6428f2301d6f84c424acdb1d10f8cef641662e0f63f954f07fe6199d504a61979c9ba3e13"
}

7
sdk-lib/src/main/assets/co.electriccoin.zcash/checkpoint/mainnet/1500000.json

@ -0,0 +1,7 @@
{
"network": "main",
"height": "1500000",
"hash": "0000000015757461b6c1169980a8be062898c1aca4861e45290bb2f07edac0fa",
"time": 1694769330,
"saplingTree": "01ca0b0297a0cb17ca41bfee5396e1ef252485c9d07087b684ff52922a1fca6c230127ad4a6c7f09cbc7b26cb93a4d0be56bf9db0fd11f71e2984507a9928bf6135a150001bb5b561b4c49473ba301f931e1bfb70e71926e416906f1841d2a7769f23c07100001eab4cdc55c3ad81a08c4c0e7a8ed79f754881de4b44718ed4230fa20b3f33c4101c1ccf91e6f5272f8dcabb246b65faae325473a7cca1c6860a358b4c5852b227000013b7051ca25271585b515cb34b0c32a5d5c6957aba18b05a83fe24da5aee9fc1f0000011f91bb48e98e17dd128559e09c5725df99d204258274a7b716a2c421ef59d107000001b80be3abe749b80354f89195cad85c45d89e5b3ccffff88ca10e6eb4a0c37238000000000001491139c6c100cdd9176607c63fa695709727d919634d2983a9412c3010ed6d3d01708c9850eb440b259f233187662c5228804cb4500263949301b6fac8f6428f2301d6f84c424acdb1d10f8cef641662e0f63f954f07fe6199d504a61979c9ba3e13"
}

7
sdk-lib/src/main/assets/co.electriccoin.zcash/checkpoint/mainnet/1510000.json

@ -0,0 +1,7 @@
{
"network": "main",
"height": "1510000",
"hash": "00000003a10174289817f24b4c8f60378e2f075e6bba3fce06e766e5f6eb90f1",
"time": 1695526960,
"saplingTree": "01971f1e5c04ad6f515c265fb7ca287cd3e325ce679e99bf665688eb036972e4430015000001687da9f56edd4364dc7e7ee3e6887a2e7933e8111c80888e3c089b3974364e12000165b3b9949855b0caeca9057520d8d1ea313f85d880371ab9adc1a72f782b242f00010acf40cff2e4749c17f58352b9ebbfc93f3093320cdf16d6b1e052dd34012c35017cd2a09bb7b82061cf0a2f0aface1b1fadbef1bfc0118d2d74062cbf06406e2401ec221b063215234d84074ed3bce108f0067a39f0583da2c02944734e0f00597201ad177ae3fd3637c38a38b30b0909b5437dc54edbd7bfb29a3d3d86d12726e96e0155a16a02a55e3e59aec6e2b40b292636610c515a08f432e25e2a96b6d0ae757101447d962c014e0aa51c2939c259ca2bd31b7458f28c76d51073fa9d0505e5f01501b80be3abe749b80354f89195cad85c45d89e5b3ccffff88ca10e6eb4a0c37238000000000001491139c6c100cdd9176607c63fa695709727d919634d2983a9412c3010ed6d3d01708c9850eb440b259f233187662c5228804cb4500263949301b6fac8f6428f2301d6f84c424acdb1d10f8cef641662e0f63f954f07fe6199d504a61979c9ba3e13"
}

7
sdk-lib/src/main/assets/co.electriccoin.zcash/checkpoint/mainnet/1520000.json

@ -0,0 +1,7 @@
{
"network": "main",
"height": "1520000",
"hash": "00000007fba88eea7c09076fa7693b7ef39feb161bd7d96299deff6f16887ce7",
"time": 1696283960,
"saplingTree": "016da64c5c9b5db696dc386c9b230e60e3572f1baab569af0e3ae3800d920c3a34015a90e174da6cd71e7b9505d4efa1ed7a91e00904c931210b80eb95fa5dc19431150001461b3858cf8585506809f331942869ee7bc88cd01ea4fd3d3ddb6298f9ee882801f9f5dd3908aeb65b36afa6df68ed369dc3bb354f3f7a116f6c7c55cc02868c0c01fb4b292d6a79bd9b8a0d067986ee1ecfe82763b8c7d590bfc71ee21508778a26000001bce18fa0af931af2f6b448202692ad31d197de42e322b871b2d21eb36b3d4e1101770741860cf8ba2a06a6f36601463c51fd8a117f60a020c7acab47e3fd7ce84d000000016f50ed4e26245944913c521adfc3e08b600f4e14c120b38afe2a78b1dbd471560001637dc44b8bb875ee3dc2796619ab3bdab974206e4dbc44435cb6bd734c47f31f0000000001491139c6c100cdd9176607c63fa695709727d919634d2983a9412c3010ed6d3d01708c9850eb440b259f233187662c5228804cb4500263949301b6fac8f6428f2301d6f84c424acdb1d10f8cef641662e0f63f954f07fe6199d504a61979c9ba3e13"
}

7
sdk-lib/src/main/assets/co.electriccoin.zcash/checkpoint/mainnet/1530000.json

@ -0,0 +1,7 @@
{
"network": "main",
"height": "1530000",
"hash": "000000027efbba859044503a52fd35ea1a1fac64e6b159dbdcebcf861f521396",
"time": 1697038908,
"saplingTree": "01d700df59367140aeee819c9264ec44182a544bf1d61a44f5ae9801bc940523020015012145e4feee12794f1d91327ac04aaa7a5cf154c527265c60d12b31e86f31fc4201aa1fab9261488d0d5d12982fcf10ddadd4a13fca190729d3fb9ed4ad4afe902201c4a760b9cf362345ce4251c5058be602fc324f8e2ec7e81f30a617c5aebb3a01000000000000000000011f07cccbe7288652b08cbca3184e3a4f7963e5c090597806e5b5bd156c84132001637dc44b8bb875ee3dc2796619ab3bdab974206e4dbc44435cb6bd734c47f31f0000000001491139c6c100cdd9176607c63fa695709727d919634d2983a9412c3010ed6d3d01708c9850eb440b259f233187662c5228804cb4500263949301b6fac8f6428f2301d6f84c424acdb1d10f8cef641662e0f63f954f07fe6199d504a61979c9ba3e13"
}

7
sdk-lib/src/main/assets/co.electriccoin.zcash/checkpoint/mainnet/1540000.json

@ -0,0 +1,7 @@
{
"network": "main",
"height": "1540000",
"hash": "000000093b7b4861ec7cf9c1262ac89815b515160e383819383ae2bce4d9d15a",
"time": 1697795052,
"saplingTree": "011342c13e4934fee3cf4ea3e2e40e7cf6430a0174f2715804085535f68ad7d90c00150000000001cc346113164aae165662668adf9cc53a91610dd04bd2a6b15a105d5b9d63a90f012061331d786c5f9f2e65b28dc34c87f66077aaf183189d261a739878891b0d42000001af41255e72b7762008ff731b1704c886dc54d587d6771411d4d60499e2b6176c0000013f9474168eaca54b4d736885e9169c891d9eba9bf22693dcfc7a87d29f2f206d011f07cccbe7288652b08cbca3184e3a4f7963e5c090597806e5b5bd156c84132001637dc44b8bb875ee3dc2796619ab3bdab974206e4dbc44435cb6bd734c47f31f0000000001491139c6c100cdd9176607c63fa695709727d919634d2983a9412c3010ed6d3d01708c9850eb440b259f233187662c5228804cb4500263949301b6fac8f6428f2301d6f84c424acdb1d10f8cef641662e0f63f954f07fe6199d504a61979c9ba3e13"
}

7
sdk-lib/src/main/assets/co.electriccoin.zcash/checkpoint/mainnet/1550000.json

@ -0,0 +1,7 @@
{
"network": "main",
"height": "1550000",
"hash": "00000000b6414f92b836b1a6400976ea986216b28ab041ea038844d3c56683b7",
"time": 1698556455,
"saplingTree": "012959a80b2361c3caf552ac681ac8ee53d4f7d7918d7efecf241b955cddffae06001501f854b0728fdb8b83e14988ae5c6f7a152bb8815e3b56b2ac44c07df8644f512e000000000001c5211557d874cad6c86442b2d6ab582ad40b504f50839684939d06fe0542793d0138f66e9b6eb361417a9004c6d7fff767873e697d12a1e16ffb5cd347327e650d015bf7b25e2d937ca6903efcb779bfb0a523bbf5d6498be86d07e80ef6207e331200000000000125c334cd519e383870df442ed17c7472f684244fffd16f3b98210b6166dfde4400000001491139c6c100cdd9176607c63fa695709727d919634d2983a9412c3010ed6d3d01708c9850eb440b259f233187662c5228804cb4500263949301b6fac8f6428f2301d6f84c424acdb1d10f8cef641662e0f63f954f07fe6199d504a61979c9ba3e13"
}

7
sdk-lib/src/main/assets/co.electriccoin.zcash/checkpoint/mainnet/1560000.json

@ -0,0 +1,7 @@
{
"network": "main",
"height": "1560000",
"hash": "0000000b6295fcf534ba222c7d68b5ee14445e2519a62c512cfd3010778d044a",
"time": 1699312762,
"saplingTree": "0117edf3b6b6db9a9f728c1b084078006a7cddce36dbaff33e92ff2dac65576028001500000001acc1dbfa656f36048482a56c369676f2a3140e814d695d5d038bcd4b4c1138290119c41be4c3cc878a1c2f3c07f068b7950bed5b7b955275bb524c61778d42d326000113ff65779be1fa31c731c366a3cdaadf24d170d3c62fada99ed928ba923f0c4101613bbb7d09e97f0e05d5bb51d73a8738a9bc1d3661af063c8be2e9f67997f71c000123cbd4c96011968bd75db9dc8d5e14c0b4f603c96ea5e21f3e61474c63cc3c3b00013ecb9ab98402ef99e0b98cb4418dfaf5cb5fc1ededa798473166fd644888283d00000125c334cd519e383870df442ed17c7472f684244fffd16f3b98210b6166dfde4400000001491139c6c100cdd9176607c63fa695709727d919634d2983a9412c3010ed6d3d01708c9850eb440b259f233187662c5228804cb4500263949301b6fac8f6428f2301d6f84c424acdb1d10f8cef641662e0f63f954f07fe6199d504a61979c9ba3e13"
}

7
sdk-lib/src/main/assets/co.electriccoin.zcash/checkpoint/mainnet/1570000.json

@ -0,0 +1,7 @@
{
"network": "main",
"height": "1570000",
"hash": "000000069f9bdf236df00a42975f1ec785fb915e900e044352043c6ecb1cb34d",
"time": 1700068836,
"saplingTree": "01f3261dc0617e334b65ca331389fed5133c038a0d202797d66f4c102d9c83d6650160e0aad042372518cad7c7188f11c40ae814b342c9bec000ebd3380f91a931631501b31de24776c40363ac58eba6ea6fcdbbc5a770686ef60224b1728a2210b7211d0001a52e639c975f9a6d08fed8bf695a1f63dd9a9f4531acd4623e3f1dc5463ff46c000000019060e603e69002f2d257840561b4590be7249a30f84acb2f8adebc5f5e7f3308000197e088d7bec23e30ef0df831c8cc1de48f7321332aa94fabe5e21f3ce9c95e4700000001143588a059963f5858e40572537e922ef3135194315e178b790d7cc163478f04000125c334cd519e383870df442ed17c7472f684244fffd16f3b98210b6166dfde4400000001491139c6c100cdd9176607c63fa695709727d919634d2983a9412c3010ed6d3d01708c9850eb440b259f233187662c5228804cb4500263949301b6fac8f6428f2301d6f84c424acdb1d10f8cef641662e0f63f954f07fe6199d504a61979c9ba3e13"
}

7
sdk-lib/src/main/assets/co.electriccoin.zcash/checkpoint/mainnet/1580000.json

@ -0,0 +1,7 @@
{
"network": "main",
"height": "1580000",
"hash": "0000000897f1f891389334c3cc14841378246bd7666232b52a1a755ac092f8a5",
"time": 1700827904,
"saplingTree": "01558f9f250df9da58711bd03e0ab2062ca3762bf636d71ee75f58dd2bf6ff8b72010ebc561a6797e26de46d73ed389ae6250cd5909931658f048069c5321444a2411501cf113ab9087777a20b32e5893f9028688c9240529b8b3682e50990dd2979231e01bccf5a5f334a91d864b068ced192e6ba95b73449b0fc7f62b25a5dd451732325015329fb72c027eb29673788d24f576208d044c1d58abba320467d0cafc4c93a6f019a69d1b1ba2b5cd37e13b95455ee87bca4e597ac4504ce0edee56303a76db61c01b8ddfa8020797eaaf70800f906e41795b487cd28d8456a3b8f718510a507ef1101ed830c798394c87515d79a50e3e8beb1ba59582cd3ade27fe524803702b3b2620140f65f7ad86f0922fd84fb91f52f29c4b3ddbf2df719df160cff9a85ec8320010001669ff43d86a7362a42f7e848ec9c65ba43f37db16a97aba07947668e904f733701545a7f49f7e7d639d26b565cc102c766a09c48a35d99dc1dc0d81dbcb489244401298669f9aa43c8014d707636f2eb5b4c1f6ac7a7c0829264cb7f70bf2026a4100001143588a059963f5858e40572537e922ef3135194315e178b790d7cc163478f04000125c334cd519e383870df442ed17c7472f684244fffd16f3b98210b6166dfde4400000001491139c6c100cdd9176607c63fa695709727d919634d2983a9412c3010ed6d3d01708c9850eb440b259f233187662c5228804cb4500263949301b6fac8f6428f2301d6f84c424acdb1d10f8cef641662e0f63f954f07fe6199d504a61979c9ba3e13"
}

7
sdk-lib/src/main/assets/co.electriccoin.zcash/checkpoint/mainnet/1590000.json

@ -0,0 +1,7 @@
{
"network": "main",
"height": "1590000",
"hash": "0000000124680145c0bef5178b36aab191b7e59a456d7df83c4696eaaec17beb",
"time": 1701578363,
"saplingTree": "013f1bfd7e56bf3101fb403f12025e5e13c3af5858ac85b243ccd535d344bb916401224ec528e8535ad9686cf4571d1ca110b709b9e8d607658c596daa687103d9691501c8bbb0f7d30c63d0731cefb57fbcc7cd3b39f5a5ff1356b139e674975a0d4a2801f25c13991e52dda8eb5bf251863e8c8bcd545e731e9a259de18ef46bfb50192c0152de9695535114914a9a6a0ac971c0bf15317fd669fdd3df002f4df87b179b4601e2791babe7064b61e73983b307e167e00fa4bb63a395717a294153c1f462223f00010d6dd5b68eb1774243ce7432c2ffaeb0d6cfce5a2ad4f0b8568585ec0b1bef4100016c9d83cefcaf3d27937ecb51187e6a59fb9f9aab956185be34e3df2efd4b5b1000013f77095217f3d96cded8612ffbbec3fca13ff07b415e3923e511bdb5c6cb3111017e3a84ece7c82421ec87669f0689ddcbb3eeb7f568c1f9ab9da210c437df562b000001fdb08d995349a8ef46813684149318c56e4eb13b8d45091b97615f19ab75b22e0125c334cd519e383870df442ed17c7472f684244fffd16f3b98210b6166dfde4400000001491139c6c100cdd9176607c63fa695709727d919634d2983a9412c3010ed6d3d01708c9850eb440b259f233187662c5228804cb4500263949301b6fac8f6428f2301d6f84c424acdb1d10f8cef641662e0f63f954f07fe6199d504a61979c9ba3e13"
}

7
sdk-lib/src/main/assets/co.electriccoin.zcash/checkpoint/mainnet/1600000.json

@ -0,0 +1,7 @@
{
"network": "main",
"height": "1600000",
"hash": "0000000e4dfb00523f8535e5bbc66401dc0aed33ffcba721c275ca0a35f2477b",
"time": 1702338930,
"saplingTree": "0137a6ca552cb484e82240915c6ba673c54021f54167e3a70b11e58769cd5a464601257c3ec2a62d68f9acdcd7e879c8582e837882d6484f6cfe0785080a8afba04515016f657f1b16a1d111d877db63da5b90221dfbfa7c542fceb5a864c200483e9f0a01bda7c5a7d87ba7b6422f1e736d08f2b8281641f890e934e562d0ea2f6d34662b011502d741feb4ff5b96f43ec817d07d7e016be617ff7a7263631e106d4fd0dd2b000001c119905221927860a0d0397c5d0f9cf81c443d91c9ec47292ed651b4ab8fc004000001ca290b18e9523cc028abd61060174156bf559003c60ab42771f63f7f026a114101d792a7073b1c2189cd654259bdedc49002fb3b332347f40c6137a460e18ba60b0000019feca10203b8cf204fa30d003c3bdc58ceaa16acec7ea186965f72bc3f12636401fdb08d995349a8ef46813684149318c56e4eb13b8d45091b97615f19ab75b22e0125c334cd519e383870df442ed17c7472f684244fffd16f3b98210b6166dfde4400000001491139c6c100cdd9176607c63fa695709727d919634d2983a9412c3010ed6d3d01708c9850eb440b259f233187662c5228804cb4500263949301b6fac8f6428f2301d6f84c424acdb1d10f8cef641662e0f63f954f07fe6199d504a61979c9ba3e13"
}

7
sdk-lib/src/main/assets/co.electriccoin.zcash/checkpoint/mainnet/1610000.json

@ -0,0 +1,7 @@
{
"network": "main",
"height": "1610000",
"hash": "00000000318ea4aea52e334b9b3f8bf91e63fe485468936bba68485ae1095a46",
"time": 1703092716,
"saplingTree": "0107fa598f71ceb0c4f0c27352c39ccb0d2f3db75177df7e2fb430789a8c61e52d001501fb18ccdf825ec2ee3c1b1e2faa627f2e2d5cddd951ef52180ae9cd665ae41a72015a1802b4732638b38b39be844f6bef3a3c2db76594a70f95983696401c1b72570000000001ecc07ae0469c4c027f81532b62e69b781d01d96cd14b0dc9b4bb815710598526000000013b3adf8da7f712d30195b7874e2d92fe9980f898fcf2c8e171023f6ce529ce3b01913b76ea8c0876d59e936d5247363a54dbf4e03bf4a9ac9f7cd2faabaf12b207019feca10203b8cf204fa30d003c3bdc58ceaa16acec7ea186965f72bc3f12636401fdb08d995349a8ef46813684149318c56e4eb13b8d45091b97615f19ab75b22e0125c334cd519e383870df442ed17c7472f684244fffd16f3b98210b6166dfde4400000001491139c6c100cdd9176607c63fa695709727d919634d2983a9412c3010ed6d3d01708c9850eb440b259f233187662c5228804cb4500263949301b6fac8f6428f2301d6f84c424acdb1d10f8cef641662e0f63f954f07fe6199d504a61979c9ba3e13"
}

7
sdk-lib/src/main/assets/co.electriccoin.zcash/checkpoint/mainnet/1620000.json

@ -0,0 +1,7 @@
{
"network": "main",
"height": "1620000",
"hash": "000000048c6667a8724512cbd999bc491ec8522b1f3817001c7ba485dec46d10",
"time": 1703846198,
"saplingTree": "01eb8a3b067a71d2e6686e825734082de9d83a0e95c9c263246addc16873547c68013e06723bb1d16eb6ec9877e1ad9cffcffc73699e9a2a9f88ad4f4b85ac3f0a681500014f6d4feac67da46c00c726a59ab226cfe1641b0dd6d19a87849f1b82d6838925000001bfaecc149cb1bb9d26b59b32c92bd73710003bfaeecee3da9c32c757954e0f38016a717ab8ceb7d7aa433073b2015bc8842f267aa66e2ccf620ae02b672a4eeb3201868aced3b0eeec75b2d06b6f97f035abeb83c8fb4657cea908d1e24707f89253000101990cb33ebc55fc786e97b85f0137bee6fc961f6c57f298cf6ed7c886269a5801e7178f4dde7b917f3ddd408bb11204ab309114a7d25c41530e93f328c98fcd5001afc9b45263c748c61fcf9b74c33073073a31a8fa20aad6215471d948344c50650000000001c2b480770a4ed4aa312595eba91cb25a5e4cb4dd368b51f0d639f866a23fe12e000001491139c6c100cdd9176607c63fa695709727d919634d2983a9412c3010ed6d3d01708c9850eb440b259f233187662c5228804cb4500263949301b6fac8f6428f2301d6f84c424acdb1d10f8cef641662e0f63f954f07fe6199d504a61979c9ba3e13"
}

7
sdk-lib/src/main/assets/co.electriccoin.zcash/checkpoint/mainnet/1630000.json

@ -0,0 +1,7 @@
{
"network": "main",
"height": "1630000",
"hash": "000000032c724b40a4fb6d3e613aed9f294f22b76fc30b6caaa3bfe7ce3b01ad",
"time": 1704599326,
"saplingTree": "01bcfb44652794a52bcd36a8a474060a8b34657c099acfd3b01a911dd8708b6e060015000001f4977a26b4b404dd10fd25f6c1ca0b0e6ae6fda4e286ac271b74f173f524174701c7b1f83da227ced7c79dab2a7ed7d06722137f4c6ffcc6cbbee9fdd3d0cefe570001023a7ffe381530fc46c600ed9d0c541cebd1ffe150eaa582fec1cb662fe1740d01cba8683a2a6e1f077e71d9ddf45f5b68316b49a7bcb9c0c6710f5a22eb2678380001cf6d0cd85ec536a4ee1bd63d2f0b3583d737c5d34ee3f3bbefebc69a62b2b05e000000015a9a2c4b59accf35c7b050f27ad84a45d36c6ce22e587c3fa061860b4573a23a000001c2b480770a4ed4aa312595eba91cb25a5e4cb4dd368b51f0d639f866a23fe12e000001491139c6c100cdd9176607c63fa695709727d919634d2983a9412c3010ed6d3d01708c9850eb440b259f233187662c5228804cb4500263949301b6fac8f6428f2301d6f84c424acdb1d10f8cef641662e0f63f954f07fe6199d504a61979c9ba3e13"
}

7
sdk-lib/src/main/assets/co.electriccoin.zcash/checkpoint/mainnet/1640000.json

@ -0,0 +1,7 @@
{
"network": "main",
"height": "1640000",
"hash": "00000000d6605a8a213fa134a2bf74cc901a42d0706718090788d6915c7ebbfd",
"time": 1705353446,
"saplingTree": "01c899797849266da90f3da00518b509acd1d8b08688ebc578317967558cf52768001501ceaec93c0f945afa93f65e67f07c01fdf1c1f7f582e501023dcf057703a5781901624168303aff13e03aeabed6f63ec50455cf0e13d3ef932a07018c79b221252f01cc2cfab26e394af78df175585e71e94ab58b3f4979e064030990d5cc642bee2f0101f758c67f56b64afa2acf815eee1fd4de4dd8dea365eb0388814cc63d13f25f01ef9a5bf6af257265aeb5faf4b391af67cafd29793a37323b49a7c14f3608b852000001a83ce7bdb63d8d8c2d39d957f7a920ebf22d8204b25f60061620086654891c460001053e5664b4b6e50c8fcf551f0a460abc2a54b780c4d26e3661aab9968729bb4001c02cad68a6613dcbccac64975fc6e7a2851654dd7fe4cae760bc507bf192034301fee6f9840f0913d91187507d7c76bc605a6b9aac4ff1e951990d1df6abbfe533015a9a2c4b59accf35c7b050f27ad84a45d36c6ce22e587c3fa061860b4573a23a000001c2b480770a4ed4aa312595eba91cb25a5e4cb4dd368b51f0d639f866a23fe12e000001491139c6c100cdd9176607c63fa695709727d919634d2983a9412c3010ed6d3d01708c9850eb440b259f233187662c5228804cb4500263949301b6fac8f6428f2301d6f84c424acdb1d10f8cef641662e0f63f954f07fe6199d504a61979c9ba3e13"
}

7
sdk-lib/src/main/assets/co.electriccoin.zcash/checkpoint/mainnet/1650000.json

@ -0,0 +1,7 @@
{
"network": "main",
"height": "1650000",
"hash": "00000000922fca1c2ab235f6592387433c0622665408caf1a689d588acd7ef4a",
"time": 1706106725,
"saplingTree": "014a43866e55370ba3daa33649d975d748cc12c1ef3580cf0c93b424238fc2b2360015018ceaeea4244a4e58fb01160f29684fef2ec344bb2a7ddf852188720593627b5801659c17e9ef2b5e45b9e55d676c5ce5f9c8b193d41abefd02adc1fdf3372eef610001689605287033ba0551e500645d7b1a41d591ae4158ddc3671da0137da00bf86500000000012da2eae775f2bba0ff79df96b7759b5e93a03d02ca6c89603fa55e80215dda5b01ec4fc9be82884f1e6a324d5e8370b1b70714ea38235b90dec6b019f466f7ef5d0001b8dab7fd26bf4cae166a75905d75e88a40ce11773afe2b1363fc793df97934580001fefbd39896743ba6d44d4ac57a51044ed6384aec3c9c76b92131713918bfd0350001c2b480770a4ed4aa312595eba91cb25a5e4cb4dd368b51f0d639f866a23fe12e000001491139c6c100cdd9176607c63fa695709727d919634d2983a9412c3010ed6d3d01708c9850eb440b259f233187662c5228804cb4500263949301b6fac8f6428f2301d6f84c424acdb1d10f8cef641662e0f63f954f07fe6199d504a61979c9ba3e13"
}

7
sdk-lib/src/main/assets/co.electriccoin.zcash/checkpoint/mainnet/1660000.json

@ -0,0 +1,7 @@
{
"network": "main",
"height": "1660000",
"hash": "000000049e13deb195724e2a64bf4d7a476b44d67d9779a321cdc32f2363c691",
"time": 1706860241,
"saplingTree": "01cb9d65145e177f4edaa867152496fe578e0b675a9956aced17f05d2318f75a420015000149966715a2721675404ad33ef711a014b406e0dc8ed916a2f6d61c4f651baf5101cacc35ab88444d2f0699ff6e6bd4939467fe775bac54651cce3857a00145e5420162a7c7432b7ccf2bd139461b0a3df15bb204172cd94353cc3c9204d443c7de7101d29d5ebe0472ab19950a9cee3049c7586be604f27d0171e440b7530599d9111a01b6d92b1466059158ce46405ccbed25f586ecac3b2e5415701d67a1b9cb0b31390105d4f83f83045db4f745e75fc33d5af26972d7c13e1efc45a7557db3c60e4b480001cf3ac4ef2f5a3580493a72037dad12070903208a2ba9c5bd5c3101dd8218d86401e8a3186dacf0f4351aa958bf78a20cc4414f1d5335a0d500d09b20d3e613e6690000010f7cd04cccbf26f8d8645f3c6c939067bb16cae9c826d0b68819f3e6bc745e2d01fefbd39896743ba6d44d4ac57a51044ed6384aec3c9c76b92131713918bfd0350001c2b480770a4ed4aa312595eba91cb25a5e4cb4dd368b51f0d639f866a23fe12e000001491139c6c100cdd9176607c63fa695709727d919634d2983a9412c3010ed6d3d01708c9850eb440b259f233187662c5228804cb4500263949301b6fac8f6428f2301d6f84c424acdb1d10f8cef641662e0f63f954f07fe6199d504a61979c9ba3e13"
}

7
sdk-lib/src/main/assets/co.electriccoin.zcash/checkpoint/mainnet/1670000.json

@ -0,0 +1,7 @@
{
"network": "main",
"height": "1670000",
"hash": "00000001d70644f12e0ed97832baea5d8d52b4109c3eb6d13628ca61c6983af6",
"time": 1707613638,
"saplingTree": "01254b7266e62b5394b59eab82b52ed3400bfbe0adabe5693f3b8fde5fad6f65200015015a7dd1a507c54ffadd35965ddef39666472eebc55cfdc3e321e05ff00ccf346100010bcfe308d67ecc5b689a2abd79bc493aab537ca7bf67a07742c046439f72830f01cbfabe9e56ad0046f71fe9bf026b54e0de6e5ec655362fe8aef115e6ade94b6d00014aa19399bc3ee369dfc82a01eab61925ccf81fde35c032855dbc5fb725d0734f000000000127b4ccf12f29673711ff89ab661f8d20044c5cc4c0f6857f15936837c3e95d3201723d33196cea8bc1ec6d8767961da8bfdc942d81321095c2daff24f2f96cb217010f7cd04cccbf26f8d8645f3c6c939067bb16cae9c826d0b68819f3e6bc745e2d01fefbd39896743ba6d44d4ac57a51044ed6384aec3c9c76b92131713918bfd0350001c2b480770a4ed4aa312595eba91cb25a5e4cb4dd368b51f0d639f866a23fe12e000001491139c6c100cdd9176607c63fa695709727d919634d2983a9412c3010ed6d3d01708c9850eb440b259f233187662c5228804cb4500263949301b6fac8f6428f2301d6f84c424acdb1d10f8cef641662e0f63f954f07fe6199d504a61979c9ba3e13"
}

7
sdk-lib/src/main/assets/co.electriccoin.zcash/checkpoint/mainnet/1680000.json

@ -0,0 +1,7 @@
{
"network": "main",
"height": "1680000",
"hash": "00000005910f9f52c1b2c386a051811f11d3eaa4c737dcce58ab3cc37fcd62fb",
"time": 1708369566,
"saplingTree": "01c73f4d8ac24ef2dcd48fce675fd5ee09350e1a1578920de0a0ed38067afa445c01ecd453147fec96d1b3ced1def1c09c297b1d52b392161f028affb200f7feec061501da854967f800bb142e6402157561abf7b1e85741bdaf1cd1d24da823740ccf2d0105e2da07c4c675f526ed6c94e6c632984bf4e3c4ae9109586c6dc8fdfbe490680192a138a3af5de48a9b702ebd82c57d89100db1c840a953d6f3948ec05983fa4201d3f2aa60a877ccf452b81b2acec67b4cf8dfe1e39b5194277549f0a8547a182c00000000000000011a4197da5094ccadee4c1ebe8ff9986649b0206dc156d464699034d7a4851801015e11b54ba0bfc974b3823eba0382f14ad5b1ec85635f8de59312c409d61d221000000001abac09048a7728fc14fbb20f4a65278fd43912731b70e5446c88c3cbfe145f420001491139c6c100cdd9176607c63fa695709727d919634d2983a9412c3010ed6d3d01708c9850eb440b259f233187662c5228804cb4500263949301b6fac8f6428f2301d6f84c424acdb1d10f8cef641662e0f63f954f07fe6199d504a61979c9ba3e13"
}

7
sdk-lib/src/main/assets/co.electriccoin.zcash/checkpoint/mainnet/1690000.json

@ -0,0 +1,7 @@
{
"network": "main",
"height": "1690000",
"hash": "00000002dbbef67d168a562e36ba850e15acfad1172d1134df4f1f4288c9d865",
"time": 1709123120,
"saplingTree": "017f462e63599f0ba1edf986d6d84f1d0f5f43481558f53705b21b27d52187293c01d33c4ff9df9b93e5cbcf0a470767100585f2ed004689f9b9c34dd38a39e02072150001a970f160fa6dc6840e87bec099e15fc22e2c15caabd25de91ce0c66abc84ab4600015aaa9d5b1d7a2bcbb0a9a79447dbff9eac22e6ad0bf86ace86959eed13653e58000001385ee382116940f207634378dcc1deaf5cb469c4892027d4afb1d3669b0b351d011253ec04a94abc023cc1c93a41bfc1d33b82475e3f91a2ce139be59f5585141b01f0f98a24cbe293e42b67466b979b24327ad83cbc48763e1431eaf865cb1d96470001ec963e3f85e21f44e5060046cf718bc962160cb0039d32271d4863e3a91d302e0171f00ba41c964446153e9c6424ce3a902b5d2703d643c6daab4faa1f31e5cb0101d822e97914c0a5983b9e54de86cee683c4b3cef946cd4509e0d9caf7cd7c174a011039470253274fad3370c750ac0e92ca0d3564613c1fc7a656cf147a2efbad6a000001abac09048a7728fc14fbb20f4a65278fd43912731b70e5446c88c3cbfe145f420001491139c6c100cdd9176607c63fa695709727d919634d2983a9412c3010ed6d3d01708c9850eb440b259f233187662c5228804cb4500263949301b6fac8f6428f2301d6f84c424acdb1d10f8cef641662e0f63f954f07fe6199d504a61979c9ba3e13"
}

7
sdk-lib/src/main/assets/co.electriccoin.zcash/checkpoint/mainnet/1700000.json

@ -0,0 +1,7 @@
{
"network": "main",
"height": "1700000",
"hash": "00000001c8a7698cd8594605fed3594a8a576535d94f3440ba69b2ec01706e2f",
"time": 1709876193,
"saplingTree": "015c4540c70a543eec50882c50ec2bcebdc3da6c704991c0d621c8f89cd4c8206301ea26be6a52c0845b879d4a36c8419380f449209040fbd5c4da21ff9f37abce60150001cd0f9858f7f3daaadc69de5d092f1361dc99904c92e66ce4563b1a33501da13b0001ac916b5df747bb33cee5412f0eb0676699c6db2c1477b2c8ad82b3dfd9a403680001b96519755fe03f49753f25f826de56bd4a65394e5f8d63255899b653b37445660001a40aacd574b161f5c44614e5a46d3737c30f2ef0bc00688e44b9b13b5598b10d00014f8db14282de10d8532e4237386e5500d0b80e698d6762bef1209f6814c89c11011849b3d4b7a23ca10630d452eaef31af154ac62b2a31c97ab51349902abefb0b01191bdb391aaa5a251da28688ed6c7ad724d3b1fab8ba24d18b1cc35649ba574900000100a2ddf67600cd4ecaf603f0e261a4cd9794be49efb447aff2ad9b4cb917a1150001abac09048a7728fc14fbb20f4a65278fd43912731b70e5446c88c3cbfe145f420001491139c6c100cdd9176607c63fa695709727d919634d2983a9412c3010ed6d3d01708c9850eb440b259f233187662c5228804cb4500263949301b6fac8f6428f2301d6f84c424acdb1d10f8cef641662e0f63f954f07fe6199d504a61979c9ba3e13"
}

7
sdk-lib/src/main/assets/co.electriccoin.zcash/checkpoint/mainnet/1710000.json

@ -0,0 +1,7 @@
{
"network": "main",
"height": "1710000",
"hash": "00000003b17400949f2f3c82142eca4c6590e863f657b64a3dbe7f79fccf38d0",
"time": 1710630223,
"saplingTree": "0194c8d11776c32dd99a78eb059983de5cf428f5b1754b48e6a63ab7272502b6710015019c61d87094a1319c84c1fd170215755bdadd8fcc08707b863712734bb3e5d24e0001dfe6a81247ba35d99e50fb0c7a7e62bf0403d2c49dc51a6d0ae05eb9490ac40b0001c89d3a85b4d9fc2b9d6663cc9d88724ecad232d19217172657283af10f573e6e00000000017902c9cbf83fb184980fe2244daa23f26bea29499b03bb4c6a2660c7a1785d2c015d37844fa5d1232ad8430b6e38f0471ac7c213585298305ddcb14617dcb41e0e000188012445e3a3f6c7183f8e3a23c8ec3a52872d29be1b00586f407210bd6ed15f000100a2ddf67600cd4ecaf603f0e261a4cd9794be49efb447aff2ad9b4cb917a1150001abac09048a7728fc14fbb20f4a65278fd43912731b70e5446c88c3cbfe145f420001491139c6c100cdd9176607c63fa695709727d919634d2983a9412c3010ed6d3d01708c9850eb440b259f233187662c5228804cb4500263949301b6fac8f6428f2301d6f84c424acdb1d10f8cef641662e0f63f954f07fe6199d504a61979c9ba3e13"
}

14
sdk-lib/src/main/java/cash/z/ecc/android/sdk/ext/ZcashSdk.kt

@ -37,19 +37,19 @@ object ZcashSdk {
// Because blocks are buffered in memory upon download and storage into SQLite, there is an upper bound
// above which OutOfMemoryError is thrown. Experimentally, this value is below 50 blocks.
// Back of the envelope calculation says the maximum block size is ~100kb.
const val DOWNLOAD_BATCH_SIZE = 10
const val DOWNLOAD_BATCH_SIZE = 50
/**
* Default size of batches of blocks to scan via librustzcash. The smaller this number the more granular information
* can be provided about scan state. Unfortunately, it may also lead to a lot of overhead during scanning.
*/
val SCAN_BATCH_SIZE = 150
val SCAN_BATCH_SIZE = 500
/**
* Default amount of time, in milliseconds, to poll for new blocks. Typically, this should be about half the average
* block time.
*/
val POLL_INTERVAL = 20_000L
val POLL_INTERVAL = 38_000L
/**
* Estimate of the time between blocks.
@ -87,11 +87,13 @@ object ZcashSdk {
val OUTPUT_PARAM_FILE_NAME = "sapling-output.params"
/**
* The Url that is used by default in zcashd.
* The Url that is used by default in hushd.
* We'll want to make this externally configurable, rather than baking it into the SDK but
* this will do for now, since we're using a cloudfront URL that already redirects.
* this will do for now
*/
val CLOUD_PARAM_DIR_URL = "https://z.cash/downloads/"
val CLOUD_PARAM_DIR_URL = listOf("https://storage.hush.land/hush3/",
"https://git.hush.is/hush/hush3/raw/branch/master/",
"https://github.com/hushmirror/hush3/raw/dev/")
/**
* The default memo to use when shielding transparent funds.

3
sdk-lib/src/main/java/cash/z/ecc/android/sdk/internal/SaplingParamTool.kt

@ -57,7 +57,8 @@ class SaplingParamTool {
ZcashSdk.SPEND_PARAM_FILE_NAME,
ZcashSdk.OUTPUT_PARAM_FILE_NAME
).forEach { paramFileName ->
val url = "${ZcashSdk.CLOUD_PARAM_DIR_URL}/$paramFileName"
val url = "${ZcashSdk.CLOUD_PARAM_DIR_URL.random()}/$paramFileName"
twig("Downloading Sapling params from ${url}...")
val request = Request.Builder().url(url).build()
val response = withContext(Dispatchers.IO) { client.newCall(request).execute() }
if (response.isSuccessful) {