问题
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