witnet / witnet-solidity-bridge

Witnet Bridge for EVM-compatible blockchains
MIT License
60 stars 24 forks source link

Assess Obscuro integration #401

Closed Tommytrg closed 6 months ago

parodyBit commented 8 months ago

https://docs.ten.xyz/docs/category/introduction

guidiaz commented 8 months ago

It seems like you need to subscribe to some sort of private rpc gateway called "Ten Gateway" in order to get your metamask, and hopefully our own rpc gateway, to connect:

However, both the Ten Testnet, and the Ten Testnet Faucet seem to be out of service right now:

guidiaz commented 7 months ago

This particularity does not affect the events thrown by the WRB. We could eventually consider to exploit somehow this awesome feature.

We should not bother deploying the WitnetRandomness contract.

guidiaz commented 7 months ago

Supported JSON RPC Methods by the TEN gateway:

For websocket connections, additional API methods include:

Currently, the sole supported subscription type is logs.

guidiaz commented 7 months ago

Sensitive JSON-RPC API Methods:

Of the methods above, the following are deemed sensitive, and their requests and responses are encrypted in transit:

guidiaz commented 7 months ago

Hosted Gateway

The Ten Gateway is a critical application that facilitates communication between a Ten node and various tools that require a connection to it, such as MetaMask. Due to the encryption of data within a Ten node, direct communication is not feasible.

The program conforms to the Ethereum JSON-RPC specification (Ethereum JSON-RPC Specification) and so, it enables witnet/web3-jsonrpc-gateway to interact w/ the Ten blockchain.

Endpoints

guidiaz commented 7 months ago

Related PRs:

guidiaz commented 7 months ago

Assessment conclusions:

Implications on DFE:

guidiaz commented 7 months ago

Ask to Ten dev-support channel:

I'm getting this error "unable to create VK encryptor - unable to create vk encryption for request - invalid viewing key signature for requested address" when trying to upgrade a proxy contract from a web3 console (from the same EOA that was used for deploying both the proxy and the logic contract)