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

Verifier Registry smart contract #41

Closed
shaharyakir opened this issue Sep 21, 2022 · 9 comments
Closed

Verifier Registry smart contract #41

shaharyakir opened this issue Sep 21, 2022 · 9 comments
Assignees
Labels
Approved This proposal is approved by the committee footstep This is a TON Footstep issue

Comments

@shaharyakir
Copy link

shaharyakir commented Sep 21, 2022

Summary

Write a smart contract ("Verifier Registry") for forwarding signed messages to other contracts

Context

We run computations on off-chain nodes that produce data which needs to be stored on chain in various contracts.
In order for these contracts to accept the data, they require it to be signed by the off-chain nodes, each of which has a public/private keypair.
The verifier registry holds the list of keypairs and verifies signatures of arbitrary data passed on to the contracts downstream.

Flow

  • An entity stakes a certain amount (10K TON) in the verifier registry contract, for which it receives the ability to store its verify configuration (node addresses, public keys for verification, multi-sig threshold)
  • Once the configuration is in place, the entity can send a signed message and an address to forward the message to.
  • The verifier contracts checks the signatures and forwards the message

Detailed spec can be found in this gist

Goals

Develop a smart contract ("Verifier Registry") for forwarding signed messages to other contracts

Deliverables

  • Github repo with contract (func 0.2.0 using latest syntax)
  • Full tests (typescript, tvm-contract-executor)
  • Code for deploying the contract (typescript)

Definition of Done

The contract can be integrated to the Ton Source project (a smart contract that accepts messages only from the verifier registry)

Reward

  • 2.000 TON

This grant is funded by Orbs as part of its ecosystem grant program.

Total: $2600

@shaharyakir shaharyakir added the footstep This is a TON Footstep issue label Sep 21, 2022
@Hiyorimi Hiyorimi added the Approved This proposal is approved by the committee label Sep 21, 2022
@xssnick
Copy link
Contributor

xssnick commented Sep 27, 2022

Im ready to implement

@shaharyakir
Copy link
Author

@Hiyorimi can we assign to @xssnick please?

@Hiyorimi
Copy link
Contributor

@Hiyorimi can we assign to @xssnick please?

Sure, done!

@Hiyorimi
Copy link
Contributor

@xssnick how are we doing on this?

@xssnick
Copy link
Contributor

xssnick commented Oct 16, 2022

It is done already, waiting for reward :)

@Hiyorimi
Copy link
Contributor

It is done already, waiting for reward :)

Have you opened a PR ?

xssnick added a commit to xssnick/ton-footsteps that referenced this issue Oct 19, 2022
@xssnick
Copy link
Contributor

xssnick commented Oct 19, 2022

#55

@Hiyorimi

@Hiyorimi
Copy link
Contributor

Thank you, investigating

@coalus
Copy link
Contributor

coalus commented Dec 5, 2022

@Hiyorimi, it seems to me that this issue can be closed

@Gusarich Gusarich closed this as completed Dec 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Approved This proposal is approved by the committee footstep This is a TON Footstep issue
Projects
None yet
Development

No branches or pull requests

5 participants