Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core: Add Sender struct #223

Merged
merged 1 commit into from
Jun 25, 2024
Merged

core: Add Sender struct #223

merged 1 commit into from
Jun 25, 2024

Conversation

moCello
Copy link
Member

@moCello moCello commented Jun 25, 2024

Resolves #222

@moCello moCello force-pushed the mocello/222_sender branch 2 times, most recently from dfe6847 to 9b9a70f Compare June 25, 2024 10:18
/// Create a new [`Sender`] enum by encrypting the sender's [`PublicKey`] in
/// a way that only the receiver of the note can decrypt.
pub fn encrypt(
note_pk: &NotePublicKey,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd call this recipient_note_pk

Copy link
Member Author

@moCello moCello Jun 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you insist? Because I think it adds more noise. In the end the npk of the stealth-address is used.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not!

core/src/note.rs Show resolved Hide resolved
@moCello moCello merged commit ec8ac0b into master Jun 25, 2024
6 checks passed
@moCello moCello deleted the mocello/222_sender branch June 25, 2024 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add the option to set a contract as a sender of a Note
3 participants