Skip to content

Commit 269a046

Browse files
author
Riley
authored
Update spelling and phrasing.
1 parent 71308ce commit 269a046

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/examples/micropayment.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Micropayment Channel
33
********************
44

5-
In this section we will learn how to build an example implementation
5+
In this section, we will learn how to build an example implementation
66
of a payment channel. It uses cryptographic signatures to make
77
repeated transfers of Ether between the same parties secure, instantaneous, and
88
without transaction fees. For the example, we need to understand how to
@@ -17,14 +17,14 @@ Alice is the sender and Bob is the recipient.
1717
Alice only needs to send cryptographically signed messages off-chain
1818
(e.g. via email) to Bob and it is similar to writing checks.
1919

20-
Alice and Bob use signatures to authorise transactions, which is possible with smart contracts on Ethereum.
20+
Alice and Bob use signatures to authorize transactions, which is possible with smart contracts on Ethereum.
2121
Alice will build a simple smart contract that lets her transmit Ether, but instead of calling a function herself
2222
to initiate a payment, she will let Bob do that, and therefore pay the transaction fee.
2323

2424
The contract will work as follows:
2525

2626
1. Alice deploys the ``ReceiverPays`` contract, attaching enough Ether to cover the payments that will be made.
27-
2. Alice authorises a payment by signing a message with her private key.
27+
2. Alice authorizes a payment by signing a message with her private key.
2828
3. Alice sends the cryptographically signed message to Bob. The message does not need to be kept secret
2929
(explained later), and the mechanism for sending it does not matter.
3030
4. Bob claims his payment by presenting the signed message to the smart contract, it verifies the
@@ -259,7 +259,7 @@ Messages are cryptographically signed by the sender and then transmitted directl
259259
Each message includes the following information:
260260

261261
* The smart contract's address, used to prevent cross-contract replay attacks.
262-
* The total amount of Ether that is owed the recipient so far.
262+
* The total amount of Ether that is owed to the recipient so far.
263263

264264
A payment channel is closed just once, at the end of a series of transfers.
265265
Because of this, only one of the messages sent is redeemed. This is why

0 commit comments

Comments
 (0)