Commit Graph

32 Commits

Author SHA1 Message Date
Kris Nuttycombe 3935950449 Add Copy, Clone, Debug, Eq, Ord, and Hash for SeedFingerprint. 2024-03-14 15:31:22 -06:00
Jack Grigg 32976af62a Add `AccountId::{zero, next}` convenience methods 2023-12-06 17:34:06 +00:00
Jack Grigg a4c4c72174 Test `DiversifierIndex::increment`
Closes zcash/zip32#8.
2023-12-06 08:57:16 +00:00
Jack Grigg 43f48d540a Add more integer conversions
Closes zcash/zip32#7.
2023-12-06 08:51:54 +00:00
Jack Grigg a449126293 Changes to match the `orchard` crate types
This will enable sharing types between `sapling-crypto` and `orchard`.

Closes zcash/zip32#9.
2023-12-05 23:22:07 +00:00
Jack Grigg ceb970c211 Fix clippy lint 2023-12-05 19:03:55 +00:00
Jack Grigg 4365a10003 Fix intra-doc link 2023-12-05 19:03:55 +00:00
Jack Grigg ce3830f277 Make crate no-std 2023-12-05 18:41:47 +00:00
Jack Grigg ea3e731868 Enforce documentation and no unsafe code 2023-12-05 18:41:47 +00:00
Jack Grigg feea7316ea Update crate metadata 2023-12-05 18:41:47 +00:00
Jack Grigg e512159fed Set up CI
Closes zcash/zip32#5.
2023-12-05 18:41:47 +00:00
Jack Grigg 69adc6df83 Bring in refactor of the crate
This refactor was performed over several years. The protocol-specific
logic now lives in protocol-specific crates, and this crate provides the
common shared types and functions.

Source: https://github.com/zcash/librustzcash
Rev: zcash/librustzcash@5aa0e6c6ee
2023-12-05 18:08:39 +00:00
Jack Grigg 6671234ad1
cargo fmt 2018-08-22 23:59:40 +01:00
Jack Grigg 770c4bef25
Simplify creation of FVKFingerprint and FVKTag 2018-08-22 23:59:20 +01:00
Jack Grigg e27fc674f5
Tidy up DiversifierIndex::increment() 2018-08-22 23:45:56 +01:00
Jack Grigg ac8b27a5ba
Expose contents of DiversifierIndex 2018-08-03 13:22:50 +01:00
Jack Grigg a4e86be665
Check ivk in test vectors 2018-08-03 13:22:35 +01:00
Jack Grigg 80130f5656
Expose underlying ExpandedSpendingKey and FullViewingKey for writing 2018-08-01 10:41:50 +01:00
Jack Grigg 599079fafe
Rename xsk: ExpandedSpendingKey -> expsk to disambiguate 2018-08-01 10:38:07 +01:00
Jack Grigg 39f978bb4f
ExtendedSpendingKey::read() and ExtendedFullViewingKey::read() 2018-08-01 10:33:37 +01:00
Jack Grigg 9c9607e47a
Add missing wrapping_add() caught by test vectors 2018-08-01 03:00:19 +01:00
Jack Grigg 342d97ac15
Test vectors from Python implementation 2018-08-01 02:52:41 +01:00
Jack Grigg e47cafd691
ExtendedSpendingKey::write() and ExtendedFullViewingKey::write() 2018-08-01 02:51:18 +01:00
Jack Grigg 3b31854de7
Payment address derivation 2018-07-31 17:24:02 +01:00
Jack Grigg fea07c52de
Diversifier derivation 2018-07-31 17:24:02 +01:00
Jack Grigg f5d6091c93
Path derivation 2018-07-31 17:24:02 +01:00
Jack Grigg e87fb329f9
Child key derivation 2018-07-31 17:24:02 +01:00
Jack Grigg 0e1d440287
Serialization and fingerprint for ExpandedSpendingKey and FullViewingKey 2018-07-31 17:24:02 +01:00
Jack Grigg 2fdfa4b671
ExtendedSpendingKey::master() 2018-07-31 17:24:02 +01:00
Jack Grigg 8db848139b
Basic conversions 2018-07-31 17:24:02 +01:00
Jack Grigg 1b8da6b12d
ZIP 32 structures 2018-07-31 17:23:58 +01:00
Jack Grigg 1e3f7739a3
Empty crate 2018-07-10 23:23:02 +01:00