Skip to content

Feature/32 encrypt bite2 with aad#33

Merged
olehnikolaiev merged 8 commits intodevelopfrom
feature/32-encrypt-bite2-with-aad
Feb 10, 2026
Merged

Feature/32 encrypt bite2 with aad#33
olehnikolaiev merged 8 commits intodevelopfrom
feature/32-encrypt-bite2-with-aad

Conversation

@olehnikolaiev
Copy link
Collaborator

@olehnikolaiev olehnikolaiev commented Feb 9, 2026

fixes #32

update t-encrypt to allow passing optional AAD for threshold encryption
add encryptMessageForCTX method
update skaled version in tests
update BITE2 tests
update README

@olehnikolaiev olehnikolaiev requested a review from a team as a code owner February 9, 2026 13:59
Copy link
Contributor

@DmytroNazarenko DmytroNazarenko left a comment

Choose a reason for hiding this comment

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

  1. Need to bump version
  2. Need to merge current develop into beta before merging this PR

README.md Outdated

### `bite.encryptMessageForCTX(message, scAddress)`

Encrypts a raw hex-encoded message specifically for Confidential Transactions (CTX). This is a convenience method that sets the `scAddress` as `AADTE`.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggest to add more details about Additional Authenticated Data (its purpose; what exactly should we pass as ctxSubmitterAddress)

tests/README.md Outdated
2. **Encrypted Data Submission**:
* Generates 5 random numbers (range 50-249).
* Encrypts each number using `bite.encryptMessage(hexValue)`.
* Encrypts each number using `bite.encryptMessageForCtx(hexValue, contractAddress)`.
Copy link
Contributor

Choose a reason for hiding this comment

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

Typo

src/core/bite.ts Outdated
/**
* Encrypt a hex-encoded message using BLS public key for CTX.
* @param message - Hex string (with or without 0x).
* @param scAddress - Smart Contract Address for AADTE.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggest to rename parameter to ctxSubmitterAddress

@olehnikolaiev olehnikolaiev merged commit 0837175 into develop Feb 10, 2026
1 check passed
@olehnikolaiev olehnikolaiev deleted the feature/32-encrypt-bite2-with-aad branch February 10, 2026 15:16
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.

encrypt BITE2 txns using SC address

2 participants