Skip to content

Commit cca3209

Browse files
wording
1 parent 710e122 commit cca3209

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

docs/learn/bitcoin-ethereum-cardano.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,17 @@ The contract logic can be summarized as:
2424

2525
## Bitcoin
2626

27-
Bitcoin is the first ever blockchain, and pioneered the Unspent Transaction Output (UTXO) model.
27+
Bitcoin pioneered the Unspent Transaction Output (UTXO) model.
2828

29-
Bitcoin is notable for not allowing Turing complete smart contracts. This means that arbitrary logic cannot be expressed by Bitcoin smart contracts.
29+
Bitcoin is notable for not allowing Turing-complete smart contracts. This means that arbitrary logic cannot be expressed by Bitcoin smart contracts.
3030

3131
Though Bitcoin doesn't support attaching datums to UTXOs, the notion of *state* still exists. The *state* of a Bitcoin smart contract is what value sits at which addresses at any given time (ie. the valid set of UTXOs).
3232

3333
Bitcoin transactions evolve the *state* of a Bitcoin smart contract.
3434

3535
If all possible states of a Bitcoin smart contract are known in advance, then all possible transactions can be created in advance as well, and pre-signed by the contract parties.
3636

37-
Which transactions are valid depends on the logic of each address. Bitcoin script logic typically consists of:
37+
Which transactions are valid depends on the script logic of each address. Bitcoin script logic typically consists of:
3838

3939
- Relative or absolute time-locks
4040
- Required signatures
@@ -59,7 +59,7 @@ If the year passes, Bob can submit the 2nd redeeming transaction.
5959
6060
## Ethereum
6161

62-
Ethereum came after Bitcoin and is the first blockchain with a Turing complete on-chain runtime environment, called the Ethereum Virtual Machine (EVM).
62+
Ethereum came after Bitcoin and is the first blockchain with a Turing-complete on-chain runtime environment, called the Ethereum Virtual Machine (EVM).
6363

6464
EVM smart contracts are simpler than (E)UTXO smart contracts, because *state* mutations are performed directly, instead of perfoming validation and transaction building as two separate processes.
6565

@@ -83,13 +83,13 @@ The `cancel` function takes Charlie's signature as an argument. If the signature
8383

8484
The `redeem` function doesn't take any arguments, and checks that one year has passed and that `tx.origin` is equal to Bob's address. The tokens will then be withdrawn to Bob's address.
8585

86-
> Note: the ERC-20 `withdraw` function only allows withdrawals from the `msg.sender` address, which corresponds to address of the vesting contract.
86+
> Note: the ERC-20 `withdraw` function only allows withdrawals from the `msg.sender` address, which corresponds to the address of the vesting contract.
8787
8888
## Cardano
8989

9090
Cardano uses the EUTXO model and is similar to Bitcoin. But Cardano's EUTXO model isn't a superset of Bitcoin's UTXO model because it doesn't support unlock scripts and misses relative time-locks.
9191

92-
Cardano does however allow creating Turing complete lock scripts called *validators*. This means that the unlock logic can be part of the validator, and can be triggered depending on which redeemer arguments are passed in when spending UTXOs.
92+
Cardano does however allow creating Turing-complete lock scripts called *validators*. This means that the unlock logic can be part of the validator, and can be triggered depending on which redeemer arguments are passed in when spending UTXOs.
9393

9494
Pre-creating and signing all possible transactions, though offering better privacy, is inconvenient. It is much easier to use Cardano's EUTXO model, which allows Alice to send the tokens directly to an appropriate validator.
9595

@@ -103,7 +103,7 @@ The Helios implementation of the basic vesting contract:
103103
```helios
104104
spending vesting
105105
106-
import { get_current_input, tx } from ScriptContext
106+
import { tx } from ScriptContext
107107
108108
const T0: Time
109109
const ALICE: PubKeyHash

0 commit comments

Comments
 (0)