Arya
0793eaf687
change(rpc): add validateaddress method ( #6086 )
...
* adds validate_address method
* Adds snapshot/vectors tests
* Checks that the address is transparent
* Removes unused pubkey/scriptPubKey fields
* adds snapshot for invalid addresses, updates network mismatch log
* simplifies is_transparent method
* Returns isvalid: false instead of conversion error
2023-02-03 02:26:58 +00:00
Conrado Gouvea
26c86cc088
use `reddsa` crate and remove duplicated RedPallas code ( #6013 )
...
* use `reddsa` crate and remove duplicated RedPallas code
* update old references to 'redpallas' crate
* Use reddsa 0.4.0
* update Cargo.lock
---------
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: Deirdre Connolly <durumcrustulum@gmail.com>
2023-02-01 23:27:28 +00:00
Conrado Gouvea
6570ebeeb8
ZIP 212: validate Sapling and Orchard output of coinbase transactions ( #3029 )
...
* Part of ZIP 212: validate Sapling and Orchard output of coinbase transactions
* Add Orchard test vector
* Revert accidentally deleted link
* Apply suggestions from code review
Co-authored-by: Alfredo Garcia <oxarbitrage@gmail.com>
* Use height from loop
* Apply suggestions from code review
Co-authored-by: Deirdre Connolly <deirdre@zfnd.org>
* Fix formatting
Co-authored-by: Alfredo Garcia <oxarbitrage@gmail.com>
Co-authored-by: Deirdre Connolly <deirdre@zfnd.org>
2021-11-11 22:18:37 +00:00
Conrado Gouvea
fdfa3cbdc6
Add ZIP-244 signature hash support ( #2165 )
...
* ZIP-244 sighash implementation using librustzcash
* ZIP-244: fix sighash test; add roundtrip test; update vectors
* Improvements from review; renamed sighash::Hash to SigHash
2021-07-07 08:27:10 +10:00
Conrado Gouvea
dd645e7e0c
Add ZIP-0244 TxId Digest support ( #2129 )
...
* Add ZIP-0244 TxId Digest support
* Apply suggestions from code review
Co-authored-by: Janito Vaqueiro Ferreira Filho <janito.vff@gmail.com>
Co-authored-by: Deirdre Connolly <deirdre@zfnd.org>
2021-07-06 09:58:22 -03:00
Conrado Gouvea
5c0880810b
ZIP-221: integrate MMR tree from librustcash (without Orchard) ( #2227 )
...
* add zcash_history.rs with librustzcash Tree wrapper
* Apply suggestions from code review
Co-authored-by: teor <teor@riseup.net>
* Apply changes from code review
* Update zebra-chain/src/primitives/zcash_history.rs
Co-authored-by: teor <teor@riseup.net>
* Apply changes from code review
* Add Entry struct; return Result where needed; add test
* Apply suggestions from code review
Co-authored-by: teor <teor@riseup.net>
* zcash_history: improve naming style with `inner`
* zcash_history: check if block has the correct network upgrade when adding to tree
* zcash_history: test improvements
* zcash_history: split Tree::new into new_from_block and new_from_cache
* zcash_history: move tests to their own file
* remove unneeded empty line in Cargo.toml
Co-authored-by: teor <teor@riseup.net>
2021-06-11 11:25:48 -03:00
Deirdre Connolly
5159046578
Add link to redpallas follow-up
2021-04-30 00:48:23 -04:00
Deirdre Connolly
40383b2741
Partway done with typing out Orchard chain types
2021-04-30 00:48:23 -04:00
Henry de Valence
d945cd28e8
chain: move Transparent{Input,Output} to transparent
...
Also bring the `Script` type there too.
2020-08-17 11:46:34 -07:00
Henry de Valence
dcc1e19129
chain: touch up docs
2020-08-17 11:46:34 -07:00
Henry de Valence
c5a8cb0c91
chain: create primitives module.
...
This contains definitions of primitive types used in other structures
and re-exports of component libraries.
2020-08-17 11:46:34 -07:00