科尔达的法律散文 [英] Legal prose in Corda

查看:49
本文介绍了科尔达的法律散文的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以解释一下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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆