shutter-node
- shutter P2P-network and shop-contracts integration
#9
Milestone
shutter-node
- shutter P2P-network and shop-contracts integration
#9
The shutter node will be a separate application that serves as a gateway to the shutter P2P network and reading the shutter contract's state for the op-node.
It will expose an HTTP API where the op-node can poll for the decryption-key of a certain L2 block-number.
define the HTTP API's technology (push/pull/longpoll, RPC/REST, WS, etc.):
getDecryptionKey(blocknumber int)
. The endpoint will either return immediately when a key has been received already, or it will block until it receives the key and then return.Like that, the op-node can already call
getDecryptionKey(n+1)
, whenn
is the current block-number to be build.Keyper's then wait for their op-geth to return
n
frometh_blockNumber
and release their key forn+1
. Once the key is received by the shutter node, it will return the key immediately to the blocking http request.define the HTTP API's methods / state-transfer model
P2P Handler / Validator functions
L2 JSON RPC client
eth_blockNumber
new unsafe head event workerinternal promise based event listening for long-polling GET requests
concurrency safe data-structure for received events & data persistence (database)
The text was updated successfully, but these errors were encountered: