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

feat: verify contract signatures #2435

Draft
wants to merge 1 commit into
base: fix/api-signature-validation
Choose a base branch
from

Conversation

iamacook
Copy link
Member

Summary

We assume that all incoming signatures-to-be-refined are 65 bytes in length. However, this is not the case for contract signatures.

Currently, the interface does not support proposal/confirmation with confirmations but it is planned.

This adds a new parseSignaturesByType helper function that verifies/splits a (concatenated) signature into signatures by type, e.g. contract signatures with their dynamic parts.

Changes

  • Add parseSignaturesByType helper
  • Leverage helper in SignatureSchema to prevent refinement of knowingly incorrect signatures
  • Add/update test coverage accordingly

@iamacook iamacook self-assigned this Mar 10, 2025
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