Legal prose in Corda

故事扮演 提交于 2020-01-10 20:08:31

问题


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?


回答1:


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 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.
    }
}


来源:https://stackoverflow.com/questions/49223980/legal-prose-in-corda

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!