Skip to content

Implement get decryption key for event based triggers - #87

Merged
konradkonrad merged 10 commits into
mainfrom
feat/decryptionkey_etd
Jan 21, 2026
Merged

Implement get decryption key for event based triggers#87
konradkonrad merged 10 commits into
mainfrom
feat/decryptionkey_etd

Conversation

@konradkonrad

Copy link
Copy Markdown
Contributor

This PR also adds code to decrypt commitments event based decryption triggers.

This is preliminary version, to allow early demo implementations -- there are still a number of required improvements from #84 in order to fully release/deploy on public mainnets.

Fixes #86

@konradkonrad
konradkonrad force-pushed the feat/decryptionkey_etd branch from eb67cd5 to 636b0f5 Compare January 20, 2026 12:02
Comment thread internal/service/crypto.go Outdated
Comment thread internal/usecase/crypto.go Outdated
Comment thread internal/usecase/crypto.go Outdated
}

decKeyResponse, httpErr := uc.GetDecryptionKey(ctx, identity)
decKeyResponse, httpErr := uc.GetEventDecryptionKey(ctx, identity)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This would fail the corresponding decrypt_commitment test as the test doesn't stub the methods to get eon and blockNumber. We should ideally also add corresponding unit tests for the new endpoint, but we can do it in a subsequent PR.

@konradkonrad
konradkonrad merged commit a850479 into main Jan 21, 2026
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.

Implement GetDecryptionKey endpoint for event based decryption triggers

2 participants