Skip to content

Conversation

@Ansonhkg
Copy link
Collaborator

@Ansonhkg Ansonhkg commented Nov 3, 2025

WHAT

  • Get Shiva fully working in the e2e test
  • Handle edge cases related to behaviour during epoch transitions. When testing these edge case scenarios (see Shiva Testing Guide),

Edge cases

1. missingVerificationKey

The node responded with a payload encrypted under a verification key the client doesn’t recognise. Essentially, it means the node has loaded a new epoch’s share before the client re-handshook.

No secret key found for verification key: <hex>

Fix: Trigger a handshake refresh and rebuild the JIT context. The next request will include the updated verification key mapping and succeed.

2. networkFetch

One or more nodes are temporarily offline (e.g., killed or rebooting).

Network or parsing error during request to http://<host>:<port>/<endpoint>: fetch failed

Fix: Refresh the handshake so the dead node is pruned from serverKeys, then rerun the request.

3. noValidShares

The client successfully received responses, but none contained valid key shares or signatures meeting the network’s threshold.

No valid xx shares to combine: ecdsa signature verification failed

Fix: Refresh the handshake to rebuild the JIT context without the missing node, and rerun the action so the result is combined from the remaining shares.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR refactors the e2e package exports by:

  • Alphabetically organizing existing exports
  • Exporting new test helper functions and types for creating test environments and accounts
  • Making the registerPaymentDelegationTicketSuite function available through the package's public API

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
packages/e2e/src/index.ts Reorganizes exports alphabetically, adds exports for new test helper functions (createEnvVars, createTestAccount, createTestEnv) and the payment delegation ticket suite
packages/e2e/src/e2e.spec.ts Updates import to use registerPaymentDelegationTicketSuite from the package's public API instead of a relative import

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

export { printAligned } from './helper/utils';
export type { AuthContext } from './types';

// re-export new helpers that should be used to refactor the `init.ts` proces
Copy link

Copilot AI Nov 3, 2025

Choose a reason for hiding this comment

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

Corrected spelling of 'proces' to 'process'.

Suggested change
// re-export new helpers that should be used to refactor the `init.ts` proces
// re-export new helpers that should be used to refactor the `init.ts` process

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants