-
Notifications
You must be signed in to change notification settings - Fork 20
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
fix: support sender signers #110
Conversation
Pull Request Test Coverage Report for Build 7548678988Warning: This coverage report may be inaccurate.We've detected an issue with your CI configuration that might affect the accuracy of this pull request's coverage report.
💛 - Coveralls |
Signed-off-by: Alexis Asseman <[email protected]>
a7da3f9
to
f8bca98
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work, I have a few questions about how the contract works, a small suggestion with naming, and another one to remove an unused variable declaration.
Signed-off-by: Alexis Asseman <[email protected]>
Signed-off-by: Alexis Asseman <[email protected]>
Signed-off-by: Alexis Asseman <[email protected]>
Signed-off-by: Alexis Asseman <[email protected]>
Signed-off-by: Alexis Asseman <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Beautiful code. LGTM
Signed-off-by: Alexis Asseman <[email protected]>
* feat(indexer-service): Sender denylist indexer-service will reject all paid queries from denied senders. Denylist DB table updates are watched through PG notifications. Signed-off-by: Alexis Asseman <[email protected]> * refactor: cleaner sender_denylist_watcher shutdown Signed-off-by: Alexis Asseman <[email protected]> * refactor: remove unnecessary Arc on CancellationToken Signed-off-by: Alexis Asseman <[email protected]> * fix: proper signers support after #110 Signed-off-by: Alexis Asseman <[email protected]> --------- Signed-off-by: Alexis Asseman <[email protected]>
The TAP implementation was assuming that the receipts/RAVs are signed by the Sender (aka. Escrow account owner), but they are actually signed by one of the signers (a key specifically created only for signing receipts/RAVs in the sender's name).
A sender can have any number of valid/thawing/expired signers.
This makes the code even uglier... I hope that I can think of a cleaner architecture later.