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

Feature/compliance #46

Merged
merged 15 commits into from
May 11, 2023
Merged

Feature/compliance #46

merged 15 commits into from
May 11, 2023

Conversation

EvgenKor
Copy link
Collaborator

These changes are required to generate detailed compliance report within the client library. Added following routines in the wasm library:

  • extract_decrypt_keys to get symmetric cipher keys needed to decrypt output tx items (account and notes)
  • symcipher_decrypt_acc \ symcipher_decrypt_acc to decrypt account and notes from the memoblock (needed to verify report correctness during development)
  • get_tx_inputs to find transaction inputs for the transaction: account and notes and intermediate nullifier from the input account
  • calculate_nullifier to getting nullifier from the account
  • few helper routines and unit-test for retrieving tx inputs

libzkbob-rs-wasm/src/client/mod.rs Outdated Show resolved Hide resolved
libzkbob-rs/src/client/state.rs Show resolved Hide resolved
libzkbob-rs/src/client/state.rs Outdated Show resolved Hide resolved
# Conflicts:
#	libzkbob-rs-wasm/Cargo.toml
#	libzkbob-rs-wasm/src/client/tx_parser.rs
#	libzkbob-rs-wasm/src/ts_types.rs
#	libzkbob-rs/Cargo.toml
@EvgenKor
Copy link
Collaborator Author

EvgenKor commented Mar 9, 2023

The PR is ready to review. The branch was merged with dd branch to resolve conflicts

@EvgenKor EvgenKor requested review from AllFi and r0wdy1 March 9, 2023 08:44
libzkbob-rs/Cargo.toml Outdated Show resolved Hide resolved
# Conflicts:
#	libzkbob-rs-wasm/src/client/mod.rs
#	libzkbob-rs/src/client/mod.rs
#	libzkbob-rs/src/delegated_deposit.rs
@EvgenKor EvgenKor requested review from AllFi and r0wdy1 May 9, 2023 16:25
Copy link

@AllFi AllFi left a comment

Choose a reason for hiding this comment

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

I believe it's better to remove commented code in order to keep the code clean. Overall, it looks good to me.

libzkbob-rs-wasm/src/client/mod.rs Outdated Show resolved Hide resolved
libzkbob-rs-wasm/src/client/mod.rs Outdated Show resolved Hide resolved
libzkbob-rs-wasm/src/client/mod.rs Outdated Show resolved Hide resolved
libzkbob-rs-wasm/src/client/mod.rs Outdated Show resolved Hide resolved
libzkbob-rs-wasm/src/client/tx_parser.rs Outdated Show resolved Hide resolved
libzkbob-rs-wasm/src/client/tx_parser.rs Outdated Show resolved Hide resolved
Copy link

@AllFi AllFi left a comment

Choose a reason for hiding this comment

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

I believe it's better to remove commented code in order to keep the code clean. Overall, it looks good to me.

removing commented code

Co-authored-by: Alexander Filippov <aleksander.fill@gmail.com>
@EvgenKor
Copy link
Collaborator Author

I believe it's better to remove commented code in order to keep the code clean

Sure, I forgot to remove it. Now it's fixed

@EvgenKor EvgenKor merged commit 3e3b0a4 into develop May 11, 2023
@EvgenKor EvgenKor deleted the feature/compliance branch May 11, 2023 19:28
akolotov added a commit that referenced this pull request May 11, 2023
This merge contains the following set of changes:
- API for revealing data required for compliance report (#46)
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