Fix/issue 68 webhook delivery#98
Open
Emmanuel-Ugochukwu1 wants to merge 2 commits into
Open
Conversation
…n host errors ReentrancyGuard and TenantBondManager tests accessed storage directly without a registered contract context (env.register_contract + env.as_contract), causing all 17 pool_manager tests to panic with: this function is not accessible outside of a contract Changes: - reentrancy_guard.rs: 4 tests now register SoroSusu and wrap in as_contract - tenant_bond.rs: 13 tests now use the same pattern; invariant test batches lock/unlock ops to stay under Soroban host budget limit Test results: 384 passed, 0 failed (was 153 passed, 17 failed)
…closes VeriNode-Labs#68) Implements the Webhook Delivery Service with Retry and Signature Verification feature: - WebhookPayload: BLS-signed, domain-separated payloads with subgroup check on public keys (reuses existing crypto module) - DeliveryEngine: enqueue, tick-based delivery with exponential backoff - DeliveryStatus tracking: Pending/Delivered/Retrying/Failed - MAX_RETRY_ATTEMPTS=5, BASE_BACKOFF_SECONDS=2, MAX_BACKOFF_SECONDS=3600 - Idempotency: duplicate event_id enqueue is rejected Integration tests (15) and inline unit tests (16) cover sign/verify roundtrip, tampering detection, off-subgroup key rejection, retry lifecycle, backoff scheduling, and idempotency.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
closes #68