Skip to content

Commit

Permalink
core: Add recipient encryption to the Note
Browse files Browse the repository at this point in the history
  • Loading branch information
moCello committed Jun 17, 2024
1 parent ec1d687 commit 9d92d61
Show file tree
Hide file tree
Showing 9 changed files with 256 additions and 328 deletions.
10 changes: 5 additions & 5 deletions core/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- Implement `rkyv` traits for `RecipientParameters`
- Implement `dusk_bytes::Serializable` for `RecipientParameters`
- Add `RecipientParameters`
- Add `elgamal::encrypt` and `elgamal::decrypt`
- Add `stealth_address` and `sync_address` functions directly to note [#208]
- Add a light sync method in the `ViewKey` [#199]
Expand All @@ -20,8 +17,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed

- Change `RecipientParams::enc_X` fields to contains `JubJubAffine` instead of `JubJubExtended`
- Include `recipient_params` field in `TxSkeleton`
- Add `sender_enc` field to the `Note` [#214]
- Add `sender_blinder` parameter for `Note` contructors [#214]
- Rename `encryption_blinder` to `value_blinder` [#214]
- Rename `NOTE_ENCRYPTION_SIZE` to `NOTE_VALUE_ENC_SIZE` [#214]
- Move `OUTPUT_NOTES` to crate root
- Change `owns` and `owns_unchecked` to take `&Note` [#208]
- Change `gen_note_sk` to take `&StealthAddress` [#208]
Expand Down Expand Up @@ -345,6 +344,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Canonical implementation shielded by feature.

<!-- ISSUES -->
[#214]: https://github.com/dusk-network/phoenix/issues/214
[#208]: https://github.com/dusk-network/phoenix/issues/208
[#201]: https://github.com/dusk-network/phoenix/issues/201
[#199]: https://github.com/dusk-network/phoenix/issues/199
Expand Down
4 changes: 1 addition & 3 deletions core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ mod encryption;
mod error;
mod keys;
mod note;
mod recipient;

#[cfg(feature = "alloc")]
mod transaction;
Expand All @@ -31,8 +30,7 @@ pub use keys::hash;
pub use keys::public::PublicKey;
pub use keys::secret::SecretKey;
pub use keys::view::ViewKey;
pub use note::{Note, NoteType, ENCRYPTION_SIZE as NOTE_ENCRYPTION_SIZE};
pub use recipient::RecipientParameters;
pub use note::{Note, NoteType, VALUE_ENC_SIZE as NOTE_VAL_ENC_SIZE};

#[cfg(feature = "alloc")]
/// Transaction Skeleton used by the phoenix transaction model
Expand Down
Loading

0 comments on commit 9d92d61

Please sign in to comment.