Skip to content

Conversation

@JanKuczma
Copy link
Collaborator

No description provided.

src/lib.rs Outdated
Ok(encrypt(&padded_message, recipient_pub_key))
}

pub fn decrypt_padded(ciphertext_bytes: &[u8], recipient_priv_key: &PrivKey) -> Result<Vec<u8>> {

Choose a reason for hiding this comment

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

Can we rename this to decrypt_padded_unchecked and then add decrypt_padded which also takes padded_length as a parameter, and errs in case there is length mismatch? That I think would be a bit safer

@JanKuczma
Copy link
Collaborator Author

  • crated workspace for rust and typescript
  • added typescript lib to the repo
  • added integration test which ensures that encryption with rust lib and ts lib is compatible
  • both rust and ts libs can be imported as dependencies via github link

@JanKuczma JanKuczma requested a review from DamianStraszak July 25, 2025 14:55
@Marcin-Radecki
Copy link
Contributor

I guess with this PR, this repo can be made read-only? https://github.com/Cardinal-Cryptography/ecies-encryption-poc

@JanKuczma JanKuczma requested a review from Marcin-Radecki July 28, 2025 15:23
Copy link
Contributor

@Marcin-Radecki Marcin-Radecki left a comment

Choose a reason for hiding this comment

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

Nice!

Copy link

@DamianStraszak DamianStraszak left a comment

Choose a reason for hiding this comment

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

Thank you for this. Super clean now and the TS is there 💪

@JanKuczma JanKuczma merged commit 3ccbc21 into main Jul 29, 2025
1 check passed
@JanKuczma JanKuczma deleted the bac-199 branch July 29, 2025 08:49
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.

3 participants