Smart contracts provide the means to stipulate rules of interaction between mutually distrustful organizations. They encode contractual agreements on the basis of source code, which else need to be contractualized in natural language. While the mediation of contractual agreements via smart contracts is seamless in theory, it requires that the conditions of an interaction are accurately made available in the blockchain. Time is a prominent such condition. In the paper at hand, we empirically measure the consistency of a smart contract to yield equal results on the basis of the time of an interaction and its potentially inaccurate representation in the blockchain. We propose a novel metric called execution accuracy to measure this consistency. We specifically measure the execution accuracy of a time interval-constrained smart contract that executes distinct logic within and without some constraint interval. We run experiments for the local Ganache and Quorum and the public G\"orli and Rinkeby Ethereum blockchains. Our experiments confirm our intuition that execution accuracy decreases near interval bounds. The novelty of our proposed metric resides in its capacity to quantify this decrease and make distinct blockchains comparable with respect to their capacity to accurately stipulate time contraints.
翻译:智能合同提供了规定互不信任组织之间互动规则的手段。 它们根据源代码对合同协议进行编码, 还需要以自然语言进行合同化。 虽然通过智能合同调解合同协议在理论上是无缝的, 但它要求在链条上准确提供互动的条件。 时间就是这样一个突出的条件。 在手头的论文中, 我们从经验上测量智能合同的一致性, 以便根据互动的时间及其在链条中的可能不准确的表述产生同等的结果。 我们提出了一个称为执行精确度的新指标, 以衡量这种一致性。 我们具体测量了受时间间隔限制的智能合同的执行准确性, 合同在一定的间隔内和不设限制的间隔内执行不同的逻辑。 我们为当地的甘纳奇和夸伦以及公众G\'orli和Rinkeweby Etheenum路障进行实验。 我们的实验证实了我们的直觉, 执行准确性在接近间隔的距离上下降。 我们拟议指标的新颖之处在于其量化这一下降的能力, 并且使不同的块链与准确规定违反时间的能力相似。