Commit Graph

125 Commits

Author SHA1 Message Date
Alfredo Garcia 9ba416c391 try to figure out what libs are needed in windows 2023-10-12 20:38:29 -03:00
Alfredo Garcia 3aebe87238 readd windows 2023-10-12 18:11:03 -03:00
Alfredo Garcia 4b8643723a
Add Cargo.lock to the project (#96) 2023-09-18 10:51:36 +10:00
dependabot[bot] 5541e58d34
Bump actions/checkout from 3 to 4 (#92)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  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-09-05 12:02:38 -03:00
Arya b900ff4261
v0.1.13 release (#91)
* rm depend/zcash

* Squashed 'depend/zcash/' content from commit 00c2a2434

git-subtree-dir: depend/zcash
git-subtree-split: 00c2a2434e655d275c26986c8751793f4c98bb01

* rm depends/zcash/Cargo.toml

* updates Cargo.toml

* Updates Changelog

* add tl_expected.hpp

* Fix build

* add test-dependencies features to ecc deps

* add missing .c files from secp256k1

* chore: Release zcash_script version 0.1.13

---------

Co-authored-by: Conrado Gouvea <conradoplg@gmail.com>
2023-07-07 14:06:27 -04:00
teor 62c83941ed Remove duplicate release instructions 2023-05-08 17:26:23 -04:00
teor 258900639b (cargo-release) version 0.1.12 2023-05-08 07:16:28 +10:00
teor 5cfaef7bbd
Upgrade zcash_script to zcashd v5.5.0 (#84)
* Update dependencies to match zcashd v5.5.0

* Update dependencies to match Zebra main branch

* Update release instructions

* Add module docs for the build script to avoid warnings

* Update bridge file list to match the latest zcashd

* Ignore some emacs temporary files

* Standardise directory include paths in Cargo.toml

* Add extra info to cxx_gen errors

* Add additional Rust dependencies needed to compile

* Ignore some expected clippy lints

* Silence a C compiler macro redefinition warning

* Standardise directory paths in build.rs

* fix cxxbridge code generation

* Update Cargo.lock

* Use include!() for bridge.rs

* Add a changelog entry for the next release

* Fix a warning by adding docs for the crate

* Remove previous depend/zcash

* Squashed 'depend/zcash/' content from commit eb80047476

git-subtree-dir: depend/zcash
git-subtree-split: eb80047476e9c0db3524f647d412faf8d4a584ee

* Update depend/zcash to v5.5.0

```sh
git subtree add -P depend/zcash https://github.com/zcash/zcash.git v5.5.0 --squash
git rm depend/zcash/Cargo.toml
```

---------

Co-authored-by: Conrado Gouvea <conradoplg@gmail.com>
2023-05-05 09:55:41 -03:00
dependabot[bot] 27f9e77549
Bump actions/checkout from 1 to 3 (#44)
Bumps [actions/checkout](https://github.com/actions/checkout) from 1 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v1...v3)

---
updated-dependencies:
- dependency-name: actions/checkout
  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-04-17 10:15:13 +10:00
teor b7ec9532e7
Add CI passing and PR review to the release instructions (#70) 2023-04-17 10:14:37 +10:00
Arya ed7b95b6da
v0.1.11 release (#69)
* Updates changelog

* chore: Release zcash_script version 0.1.11

* Apply suggestions from code review

Co-authored-by: teor <teor@riseup.net>

---------

Co-authored-by: teor <teor@riseup.net>
2023-02-23 19:24:18 -05:00
teor 5cbddbdac8
Update dependencies to match Zebra (#67) 2023-02-24 10:05:55 +10:00
teor 2b2c666c04
Add extra dependency update steps to the README (#63)
* Add extra dependency update steps to the README

* Use correct dependency steps from Cargo.toml

* Explain how to make new dependencies work

* Simplify instructions

* Add "check all open PRs before releasing"

* Add "run cargo-release" to the release instructions

Co-authored-by: Arya <aryasolhi@gmail.com>

---------

Co-authored-by: Arya <aryasolhi@gmail.com>
2023-02-24 09:08:01 +10:00
teor fb997ccf3f
Check if we still need the rustc_serialize dependency (#68) 2023-02-24 09:07:06 +10:00
teor e04ad0fd88
Upgrade to Rust 2021 edition (#64) 2023-02-24 07:55:45 +10:00
teor 07a39e32e6
Make dependencies automatically upgrade to match Zebra dependency versions (#66) 2023-02-24 07:47:27 +10:00
Arya 96a9b9026c
chore: Release zcash_script version 0.1.9 (cargo-release) (#62) 2023-02-23 16:08:17 -05:00
Arya b5a8622e6c
update changelog (#61) 2023-02-23 14:20:56 -05:00
Arya 76c0aa5dae
Update depends/zcash to 5.4.0 release (#60)
* delete previous version

* Squashed 'depend/zcash/' content from commit 774f2d8ed

git-subtree-dir: depend/zcash
git-subtree-split: 774f2d8eda62cc51990e0aa154f92f09ffba3873

* updates Cargo.toml
2023-02-17 13:36:49 -05:00
teor d352b0c971
Check for duplicate dependencies (#48) 2022-12-14 14:43:58 -03:00
teor ccd7185489
Activate dependabot on zcash_script (#43) 2022-12-06 14:20:45 -03:00
Marek b4a8aa2b82
Bump dependencies and release v0.1.8 (#41)
* Bump dependencies

* Bump `bindgen`

* Remove zcashd subtree

* Squashed 'depend/zcash/' content from commit 35186b009

git-subtree-dir: depend/zcash
git-subtree-split: 35186b00928f3ba994f0e66bb234c412cbffc7b6

* Update to zcashd v5.3.0

* Make dependency versions match zcashd v5.3.0

* Update README for Orchard, and make dependency bumps clearer

* Add release 0.1.8 to the CHANGELOG

Co-authored-by: teor <teor@riseup.net>
2022-10-31 08:53:25 +10:00
Conrado Gouvea 5266ac19b7
v0.1.7 release (#39)
* update changelog for v0.1.7

* (cargo-release) version 0.1.7
2022-08-31 19:16:10 -03:00
Conrado Gouvea bef75ee7bb
Update to zcash 5.2.0 (#37)
* delete previous version

* Squashed 'depend/zcash/' content from commit f98166f7f5

git-subtree-dir: depend/zcash
git-subtree-split: f98166f7f556ee9b9f597d45275c32843a87b0b6

* update to zcash 5.2.0

* remove Windows support for now, see #38
2022-08-23 05:40:55 +10:00
Conrado Gouvea c9fbc441ef
Use subtree again to allow publishing the crate (#34)
* change: update Cargo.toml, lib.rs, CHANGELOG.md for 0.1.6 release.

* Squashed 'depend/zcash/' content from commit 9af3bce26

git-subtree-dir: depend/zcash
git-subtree-split: 9af3bce265ba428382006b0940678418d65f505f

* fix: delete depend/zcash/Cargo.toml to prevent cargo from ignoring it

* ci: add cargo package test

* change(doc): explain the subtree / squash issue in README.md
2022-05-17 19:31:56 -03:00
Conrado Gouvea 2be4323142
change(doc): update CHANGELOG for 0.1.6 release (#33) 2022-05-16 19:17:44 -03:00
Conrado Gouvea 7704c1ee42
change: update dependencies for NU5 mainnet (matching zcashd 5.0.0) (#32) 2022-05-13 20:18:46 +02:00
Conrado Gouvea 98c74180ff
Update zcash to new V5 API; add tests (#30)
* update zcash to new V5 API; add tests

* try using x86_64-pc-windows-gnu on windows

* Expand README

* update zcash

* retrigger build

* update zcash to current nu5-consensus branch

* use Zcash v4.7.0
2022-04-18 15:28:54 -03:00
Conrado Gouvea 8c9bdb3a35 Revert "Add support for zcash_script_transparent_output_address() (#29)"
This reverts commit b7801e4027.
2022-03-03 12:04:47 -05:00
Conrado Gouvea b7801e4027
Add support for zcash_script_transparent_output_address() (#29)
* add support for zcash_script_transparent_output_address()

* try using x86_64-pc-windows-gnu on windows

* update zcash to version which returns address type
2022-03-03 10:52:35 -03:00
Alfredo Garcia 270d32d192
update bindgen (#28) 2022-01-18 11:58:04 -03:00
teor 5fdb9c76f7 depend/zcash submodule changes for script sigops 2021-11-15 09:03:09 +10:00
teor 4dfb28b679 Update error logs and README for submodules 2021-11-15 09:03:09 +10:00
Janito Vaqueiro Ferreira Filho 1caa29e975
Merge pull request #22 from jvff/update-zcash-to-support-v5-transactions
Update `libzcash_script` to include support for V5 transactions
2021-10-05 21:18:47 -03:00
Janito Vaqueiro Ferreira Filho 47d5d2c1bc Replace symbolic links with file inclusion
Update `depend/zcash` so that the `orchard_ffi` module has a root
`mod.rs` module file to fix an issue where Cargo can't find any
sub-modules.
2021-10-05 23:21:40 +00:00
Janito Vaqueiro Ferreira Filho 2e4cd75b0f Use a forked version of Zcash to build on Windows
Don't compile the `CurrentTxVersionInfo` function, because it requires
including some other code that won't be used by `zcash_script`.
2021-10-05 22:32:40 +00:00
Janito Vaqueiro Ferreira Filho 92d9c36c31 Ignore some more C++ warnings
Fix the compilation of the C++ files.
2021-10-05 15:28:44 +00:00
Janito Vaqueiro Ferreira Filho f5f4ab3c57 Include `memory_cleanse` helper function in build
Including the transaction FFI code requires this helper function to be
linked in.
2021-10-05 03:38:54 +00:00
Janito Vaqueiro Ferreira Filho 337f5eb182 Add missing FFI modules
New FFI modules required for `libzcash_script`.
2021-10-05 03:38:54 +00:00
Janito Vaqueiro Ferreira Filho 1765456794 Add `depend/zcash` as a submodule
Keep track of the remote with the changes and allow the directory to be
handled more easily as a separate repository.
2021-10-05 00:56:15 +00:00
Janito Vaqueiro Ferreira Filho 96e74e9e99 Remove depend/zcash entirely
`git subtree` wasn't working because it was missing commit `d94fe7678'.
Looking at the history, it seems like that commit became `fa1a57867`.
2021-10-05 00:52:10 +00:00
Janito Vaqueiro Ferreira Filho ffb4c0cb76
Merge pull request #23 from jvff/split-off-secp256k1-build
Build the `secp256k1` C files separately
2021-07-15 16:15:50 -03:00
Janito Vaqueiro Ferreira Filho ba8beb2dc0
Add comment to describe `/wd4100`
Make it easy to understand what it is without having the reader to look
it up.

Co-authored-by: teor <teor@riseup.net>
2021-07-15 08:43:46 -03:00
Janito Vaqueiro Ferreira Filho 357a8892e7 Build `secp256k1` separately using C99 standard
Remove the current Clang warning about compiling C code using C++ mode,
and also avoid errors in the future when the `zcash` dependency is
updated.
2021-07-15 00:27:49 +00:00
Janito Vaqueiro Ferreira Filho 56f5555467 Move `secp256k1` build into a separate function
This just moves the code that configures the build for `secp256k1p`, but
the plan is to have this function perform an independent build.
2021-07-14 21:56:24 +00:00
Janito Vaqueiro Ferreira Filho 7a72f7e36c Create `language_std` helper function
A helper function to configure the build's language standard and to
automatically enable or disable C++ support. This allows moving some
more code out of `main`, but it is also preparing for running more than
one build, for splitting the `secp256k1` library.
2021-07-14 21:55:39 +00:00
Janito Vaqueiro Ferreira Filho dbc90de1a2 Group all flags together
Make setting them more consistent.
2021-07-14 21:39:24 +00:00
Janito Vaqueiro Ferreira Filho 1ad71a572f Refactor 64-bit check into a helper function
Move some more code out from the `main` function to keep it easier to
read. Also renamed the function so that it better conveys that it's a
check returning a `bool`.
2021-07-14 21:26:45 +00:00
Janito Vaqueiro Ferreira Filho 6de36cb487 Refactor `is_big_endian` into a helper function
Simplify the `main` function a little by moving out some code.
2021-07-14 20:33:56 +00:00
Kirill Fomichev 7ea844c80f ci 2021-04-19 00:10:52 -04:00