-
Notifications
You must be signed in to change notification settings - Fork 6
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
ed25519 verify #19
ed25519 verify #19
Conversation
@race-of-sloths include |
@petersalomonsen Thank you for your contribution! Your pull request is now a part of the Race of Sloths! Current status: executed
Your contribution is much appreciated with a final score of 8! We would appreciate your feedback or contribution idea that you can submit here What is the Race of SlothsRace of Sloths is a friendly competition where you can participate in challenges and compete with other open-source contributors within your normal workflow For contributors:
For maintainers:
Feel free to check our website for additional details! Bot commands
|
@race-of-sloths score 8 |
This PR implements the contract part of the flow shown in the diagram below, and includes an e2e test for deposit of fungible tokens to cover the cost of an AI conversation, and signing the refund of what was not spent.
What is important here is the addition of
ed25519_verify
to be able to verify messages signed by the AI service. The user can request refund of unspent fungible tokens, but in order to do that a signed message from the AI service must be presented.The actual AI service is being implemented in here: petersalomonsen/near-openai#11