Interledger Protocol (ILP)

Intro

decentralized payment protocol screen shot 2017-10-28 at 1 44 12 pm

Crypto-Conditions

The crypto-conditions specification defines a set of encoding formats and data structures for conditions and fulfillments. A condition uniquely identifies a logical "boolean circuit" constructed from one or more logic gates, evaluated by either validating a cryptographic signature or verifying the preimage of a hash digest. A fulfillment is a data structure encoding one or more cryptographic signatures and hash digest preimages that define the structure of the circuit and provide inputs to the logic gates allowing for the result of the circuit to be evaluated.

screen shot 2017-10-31 at 3 38 09 pm

screen shot 2017-10-31 at 3 23 15 pm

  • https://tools.ietf.org/html/draft-thomas-crypto-conditions-02
  • https://docs.bigchaindb.com/projects/server/en/latest/data-models/inputs-outputs.html
  • https://github.com/go-interledger/cryptoconditions
  • https://github.com/bigchaindb/cryptoconditions
  • https://github.com/rfcs/crypto-conditions/

Comments

https://github.com/wanchain/crypto/blob/master/%E8%B7%A8%E9%93%BE%E6%8A%80%E6%9C%AF%E8%B0%83%E7%A0%94%E6%8A%A5%E5%91%8A.pdf

Interledger 是 Ripple 于 2015 年ᨀ出的跨链交易协议,简称 ILP。它的目标是作为所有账本的仲裁器,无论是分布式账本还是中心化账本,目前代码开发已经基本完全。Interledger了两种交易的方式,atomic mode 和 universal mode。在 atomic mode 下,节点先选定公证人(notaries),然后发送者将资金发送到可信第三方的账户(escrow),然后 connector 将资金发入接收者所在链的可信第三方账户,之后公证人获取到接收者的 commit 后,通过 PBFT 达成共识,通知两条链上的可信第三方,由两条链上的可信第三方再将资金分别转到connector 和接收者的账户;如果节点无法选定公证人,则进入 universal mode,在这一模式下,不再由公证人决定交易进行状态,而是假设参与者均为理性的,由利益驱使整个交易的完成。Interledger 的设计上有如下的问题:

  • 需要选取公证人,且公证人无 membership change,无 weighting
  • 资金的接收者必须在线才能完成交易
  • 需要可信第三方 escrow
  • 无跨链交易历史明细纪录

References

  • https://interledger.org/rfcs/0003-interledger-protocol/
  • https://www.youtube.com/watch?v=Dyi3RB50dDQ
  • https://www.youtube.com/watch?v=UdCxrqP6w3I

Video