forked from inariksit/cclaw-zettelkasten
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
86 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
date: "2020-06-17" | ||
tags: | ||
- approach | ||
--- | ||
|
||
# Contracts as code | ||
|
||
Broad term that covers | ||
- <automatic_contract_processing> of <legal_contract>s | ||
- <smart_contract> | ||
|
||
### Languages for writing contracts as code | ||
- <daml> | ||
|
||
|
||
### Terminology | ||
|
||
Documenting here what terms are used where. | ||
|
||
Used in Surden 2012 <computable_contracts> | ||
- “computable contract(ing)” | ||
- “data-oriented contract(ing)” | ||
- “contract-as-data” | ||
- “autonomous computer-to-computer contract(ing)” |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
--- | ||
date: "2020-06-15" | ||
tags: | ||
- language | ||
--- | ||
|
||
# DAML smart contracts | ||
# DAML | ||
|
||
[DAML web page](https://daml.com/) | ||
|
||
An interpretation of <rules_as_code>, where the <contract>s are | ||
automatically generated and signed by computers and sent between servers. | ||
A language for writing <smart_contract>. | ||
The contract is automatically generated and signed by computers and sent between servers. | ||
|
||
For example, one company places an order of T-shirts for a conference. Now it | ||
is important for both companies that they can prove that the order is placed and confirmed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
date: "2020-06-17" | ||
tags: | ||
- concept | ||
- contract | ||
--- | ||
|
||
# Financial contract | ||
|
||
|
||
A promise of payment between parties. It's kind of like money or other valuable goods, just potential sort of those. This means people sell and trade them, and they can change in value just like any goods. | ||
|
||
Explanation that makes sense for a functional programmer: | ||
Peyton Jones and Eber (2003) _[How to write a financial contract](https://citeseerx.ist.psu.edu/viewdoc/download;jsessionid=F1689CB5CC0D35AD06ACE3DD04FF14D2?doi=10.1.1.14.7885&rep=rep1&type=pdf)_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
--- | ||
date: "2020-06-17" | ||
tags: | ||
- concept | ||
--- | ||
|
||
# Formal model | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
date: "2020-06-17" | ||
tags: | ||
- concept | ||
- contract | ||
--- | ||
|
||
# Legal contract | ||
|
||
Normative text that describes an agreement between parties. | ||
|
||
The parties are bound by law to fulfil the contract. (Even if the contract is [ridiculous](https://www.rt.com/business/man-outsmarts-banks-wins-court-221/).) | ||
|
||
Traditionally, a legal contract is drafted by humans. In the glorious future, we'll have <contracts_as_code>. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
date: "2020-06-17" | ||
tags: | ||
- concept | ||
- contract | ||
--- | ||
|
||
# Smart contract | ||
|
||
Like <financial_contract>, this is also a promise of exchanging goods between parties. | ||
|
||
Unlike traditional (financial) contract, a smart contract doesn't require third parties to make it reliable. It's reliable because it's | ||
- Written as code. (<contracts_as_code>) This means that conditions can be automatically validated. "Did Alice pay Bob 50 dollars" is not up to negotiation, it can be checked automatically. | ||
- Distributed publicly in a decentralized system. This means that Bob can't just burn the contract after Alice has paid (or hack the server of a single provider that hosts the contract). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters