Skip to content

Commit a03affa

Browse files
authored
Merge pull request ProgrammingBlockchain#87 from youngmtool/patch-4
Edit some sentence
2 parents ca972ac + c03cfe0 commit a03affa

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

other_types_of_ownership/arbitrary.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
From Bitcoin 0.10, the **RedeemScript** can be arbitrary, which means that with the script language of Bitcoin, you can create your own definition of what “ownership” means.
44

5-
For example, I can give money to whoever either know my date of birth (dd/mm/yyyy) serialized in UTF8 either knows the private key of **1KF8kUVHK42XzgcmJF4Lxz4wcL5WDL97PB**.
5+
For example, I can give money to whoever knows either my date of birth (dd/mm/yyyy) serialized in UTF-8 or the private key of **1KF8kUVHK42XzgcmJF4Lxz4wcL5WDL97PB**.
66

7-
The details of the script language are out of scope, you can easily find the documentation on various websites, and it is a stack based language so everyone having done some assembler should be able to read it.
7+
The details of the script language are out of scope. You can easily find the documentation on various websites. The Bitcoin script language is a stack based language so everyone having done some assembler should be able to read it.
88

99
> **Note:** ([nopara73](https://github.com/nopara73)) I find [Davide De Rosa's tutorial](http://davidederosa.com/basic-blockchain-programming/bitcoin-script-language-part-one/) as the most enjoyable one.
1010
@@ -24,7 +24,7 @@ Script redeemScript = new Script(
2424
"OP_ENDIF");
2525
```
2626

27-
This **RedeemScript** means that there is 2 way of spending such **ScriptCoin**: either you know the data that give **birthHash** (my birthdate), either you own the bitcoin address.
27+
This **RedeemScript** means that there are 2 ways of spending such **ScriptCoin**: Either you know the data that gives **birthHash** (my birthdate) or you own the bitcoin address.
2828

2929
Let’s say I sent money to such **redeemScript**:
3030

@@ -34,7 +34,7 @@ tx.Outputs.Add(new TxOut(Money.Parse("0.0001"), redeemScript.Hash));
3434
ScriptCoin scriptCoin = tx.Outputs.AsCoins().First().ToScriptCoin(redeemScript);
3535
```
3636

37-
So let’s create a transaction that want to spend such output:
37+
So let’s create a transaction that wants to spend such output:
3838

3939
```cs
4040
//Create spending transaction
@@ -56,7 +56,7 @@ spending.Inputs[0].ScriptSig = scriptSig;
5656
You can see that in the **scriptSig** I push **OP_1** so I enter in the **OP_IF** of my **RedeemScript**.
5757
Since there is no backed-in template, for creating such **scriptSig**, you can see how to build a P2SH **scriptSig** by hand.
5858

59-
Then you can check that the **scriptSig** prove the ownership of the **scriptPubKey**:
59+
Then you can check that the **scriptSig** proves the ownership of the **scriptPubKey**:
6060

6161
```cs
6262
//Verify the script pass

0 commit comments

Comments
 (0)