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

feat(sdk): add collections for nanotdf #1695

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open

Conversation

imdominicreed
Copy link
Contributor

@imdominicreed imdominicreed commented Oct 30, 2024

Adds in Datasets for NanoTDF. If dataset store is enabled in SDK, nanoTDF headers will be saved with their unwrapped key, so future nanoTDFs can be decrypted without extra rewrap calls. NanoTDFs will be able to be written in a dataset in the NanoTDFConfig, allowing for flexible usage of datasets.

Example Local Run

To run a quick example collection locally. This will write two collections with 50 nTDFs with the plaintext being changed to <i>: <plaintext>. Decrypt will decrypt the two collections and will only do two unwrap calls rather than 100 for each nTDF.

mkdir collection
go run ./examples encrypt "Collection A" --nano -c 50 -o collection/collection_a.ntdf
go run ./examples encrypt "Collection B" --nano -c 50 -o collection/collection_b.ntdf
go run ./examples decrypt collection

Summary:

Test Plan:
Summary:

Test Plan:
Summary:

Test Plan:
Summary:

Test Plan:
Summary:

Test Plan:
@imdominicreed imdominicreed marked this pull request as ready for review October 31, 2024 22:47
@imdominicreed imdominicreed requested a review from a team as a code owner October 31, 2024 22:47
Sample functions to test
```
mkdir collection
go run ./examples encrypt "Collection A" --nano -c 50 -o collection/collection_a.ntdf
go run ./examples encrypt "Collection B" --nano -c 50 -o collection/collection_b.ntdf
go run ./examples decrypt collection
```
@imdominicreed imdominicreed requested review from a team as code owners November 5, 2024 20:55
@imdominicreed imdominicreed changed the title feat(sdk): add datasets for nanotdf feat(sdk): add collections for nanotdf Nov 5, 2024
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.

1 participant