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

add beacon sim, add skeleton for encrypt, add subscribe to justifs #10

Merged
merged 1 commit into from
Jun 4, 2024

Conversation

driemworks
Copy link
Contributor

No description provided.

@driemworks driemworks merged commit 38d3321 into dev Jun 4, 2024
driemworks added a commit that referenced this pull request Sep 30, 2024
* v2 initial commit

* add beacon sim, add skeleton for encrypt, add subscribe to justifs (#10)

* implemented decrypt function

* pushing updated tests

* updated mock and test for encryption

* removed unused import in mock test. Updated decrypt to only retrieve the BLS sig from the justification stream and decrypt ciphertext

* move all text encoding into enrypt func

* cleanup, make constnts

* beacon sim test WIP: output of beacon sim to be updated

* fixed mock justification test

* removed unnecessary tests

* updated decryption test and etf-sdk mock

* Code and import cleanup

* Missed file from code cleanup

* pushing initial changes. Encrypt function still pending

* updated ibePubKey to use that of the beacon's pub key

* pushing intermediate changes

* estiamte validator set id, refactoring

* updated tests for earlyDecrypt function

* update example

* use key field from hkdf output

* updated function names to tle, tld, and decrypt. Updated tests.

* moved objects into types.ts

* updated formatting

* tld WIP: decryption fails due to invalid sigs

* remove encoding when calling encrypt, add docs, example works

* pushing delay_tx function. Testing and review pending

* Updated return types for tle, tld, decrypt, and delay

* Removed unnecessary TLECiphertext type

* removed TLECiphertext import

* updated tests

* update delayed tx example

* bump version

* fix: expect UInt8Array for tlock encryption

---------

Co-authored-by: colemanirby <ckirbyee92@gmail.com>
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