Oracle+AI

作者: lisoleg | 来源:发表于2019-04-02 15:37 被阅读0次

区块链是世界计算机CPU,oracle其实是bridge也是io才能与现实世界打交道,交易所其实也是一种oracle

高tps就一味追求提高主频,多链就是类似多核架构,网络才是计算机,以太坊是世界计算机试图用单链解决不可行,sharding不如多链

带神谕的图灵机相比普通图灵机多了一个只读功能的头来读取存储神谕的纸带,一般以A图灵可归约于B以表示存在以B为神谕的图灵机来计算A

ORACLES

Overview and definitions

An oracle is an entity on the blockchain and lives in the oracle state tree in a full node.

An oracle is operated by an oracle operator.

The oracle operator creates an oracle through posting a oracle register transaction on the chain.

The oracle register transaction register an account as an oracle. (One account - one oracle)

Any user can query an oracle by posting an oracle query transaction on the chain.

The oracle query transaction creates an oracle query object in the oracle state tree.

The oracle operator scans the transactions on the blockchain for the oracle query transaction through whatever means. Probably on the operator's own node.

The oracle operator responds to the oracle query by posting an oracle response transaction on the chain.

The oracle response transaction modifies the oracle query object by adding the response.

After the response have been added, the oracle query object is closed, and is now immutable.

Oracle life cycle examples

Oracle state trees

Oracle transactions

Technical aspects of Oracle operations

Oracles have a published API

The API defines the format that queries should have. (query_format)

The API defines the format answers will have. (response_format)

The API defines the ABI version under which the formats should be interpreted.

If the ABI version is 0 (?AEVM_NO_ABI):

the query and response formats are uninterpreted strings (byte arrays).

the queries and responses are treated as strings when called from sophia contracts.

For ABI version corresponding to AEVM/FATE:

the query and response formats must be type representations, encoded according to the ABI.

the queries and responses are interpreted as the types in the format specifications

Oracle responses have a type declaration

Types should correspond to types in the smart contract language.

There should be incentives to use simple types in oracle answers (boolean, integer).

For example, through access cost in smart contracts.

Should oracle responses have restrictions on use?

For example, should only the creator of the query be able to use the answer in a smart contract?

Should the framework support encryption/decryption of answers?

An oracle query/response has a TTL

The actual response will remain on the chain.

The response will be pruned from the state tree after a certain number of blocks.

The cost of posting the answer should reflect the TTL.

相关文章

  • Oracle+AI

    区块链是世界计算机CPU,oracle其实是bridge也是io才能与现实世界打交道,交易所其实也是一种oracl...

网友评论

      本文标题:Oracle+AI

      本文链接:https://www.haomeiwen.com/subject/qfygbqtx.html