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

Load key_hash from orakl-cli & compare with incoming VRF request #365

Merged

Conversation

martinkersner
Copy link
Member

@martinkersner martinkersner commented Mar 11, 2023

Description

This PR adds a new field key_hash for VrfKey table in SQLite of orakl-cli. Consequently, this key_hash is loaded in VRF listener and used to compare with incoming requests that include a key hash representing an entity that should respond with random words.

Note: key_hash is loaded in listener in global scope. This is a not good practice, and we plan to fix it together with other listener related issues at #236

Type of change

  • New feature (non-breaking change which adds functionality)

Checklist before requesting a review

  • I have performed a self-review of my code.

Deployment

  • Should publish npm package
  • Should publish Docker image

Sorry, something went wrong.

@martinkersner martinkersner self-assigned this Mar 11, 2023
@martinkersner martinkersner linked an issue Mar 11, 2023 that may be closed by this pull request
@martinkersner
Copy link
Member Author

/integration

@martinkersner
Copy link
Member Author

/integration

@martinkersner martinkersner marked this pull request as ready for review March 11, 2023 05:41
@martinkersner martinkersner merged commit 73e80e3 into master Mar 11, 2023
@martinkersner martinkersner deleted the i-360/feat/vrf-listen-only-to-keyhash-specific-requests branch March 11, 2023 05:42
@martinkersner
Copy link
Member Author

/integration

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.

VRF listener should listen only to events with specific keyhash
1 participant