科尔达的法律散文 [英] Legal prose in Corda
问题描述
有人可以解释一下Corda中的法律散文是什么?我知道这是一个文档,用于解决冲突,但是我没有找到任何信息。以及它如何与智能合约链接?
Can someone explain what is it legal prose in Corda? I understood that it is a document, which is used to solve conflicts, but i didnt find any information how it looks like. And how is it linked with smart contract?
推荐答案
A 合同
类可以使用 @LegalProseReference
注释进行注释。该注释将合同与文档相关联,该文档重申了以法律散文形式进行的验证施加的约束。这不是必需的,但在预计在不同情况下法律合同将优先于软件实现的情况下很有用。
A Contract
class can be annotated with the @LegalProseReference
annotation. This annotation associates the contract with a document that restates the constraints imposed by verify in legal prose terms. This is not required, but can be useful in contexts where it is expected that legal contracts will take precedence over the software implementations in case of disagreement.
@LegalProseReference
使用单个参数 uri
,该参数标识与合同相关的法律散文:
@LegalProseReference
takes a single parameter, uri
, which identifies the legal prose document the contract is associated with:
@LegalProseReference(uri = "foo.bar.com/my-legal-doc.html")
public class MyContract implements Contract {
@Override
public void verify(LedgerTransaction tx) {
// Contract logic.
}
}
这篇关于科尔达的法律散文的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!