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

Add optional signature expiration #371

Open
dzikowski opened this issue Sep 20, 2024 · 0 comments
Open

Add optional signature expiration #371

dzikowski opened this issue Sep 20, 2024 · 0 comments

Comments

@dzikowski
Copy link
Collaborator

  1. Add optional field to ChainCallDTO for unix timestamp of signature expiration: signatureExpiresAt: number.
  2. On authorization compare signatureExpiresAt (if provided) with ctx.txUnixTime, and fail if the signature already expired.
  3. Set hardcoded limit for max expiration like year from now, or month from now, to prevent from common mistakes, like providing unix time x 1000
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

No branches or pull requests

1 participant