@@ -52,7 +52,7 @@ users can always call `ForeignBridge.transferHomeViaRelay(homeRecipientAddress,
52
52
` foreign ` is assumed to use PoA (proof of authority) consensus.
53
53
relays between the chains happen in a byzantine fault tolerant way using the authorities of ` foreign ` .
54
54
55
- ### highlevel explanation of home ether -> foreign ERC20 relay
55
+ ### high level explanation of home ether -> foreign ERC20 relay
56
56
57
57
` sender ` deposits ` value ` into ` HomeBridge ` .
58
58
the ` HomeBridge ` fallback function emits ` Deposit(sender, value) ` .
@@ -64,16 +64,16 @@ once there are `ForeignBridge.requiredSignatures` such transactions
64
64
with identical arguments and from distinct authorities then
65
65
` ForeignBridge.balanceOf(sender) ` is increased by ` value ` .
66
66
67
- ### highlevel explanation of foreign ERC20 -> home ether relay
67
+ ### high level explanation of foreign ERC20 -> home ether relay
68
68
69
69
` sender ` executes ` ForeignBridge.transferHomeViaRelay(recipient, value) `
70
70
which checks and reduces ` ForeignBridge.balances(sender) ` by ` value ` and emits ` ForeignBridge.Withdraw(recipient, value) ` .
71
71
72
- for each ` ForeignBridge.Withdraw ` every bridge authority creates a message containg
73
- ` value ` , ` recipient ` and the ` transactionHash ` of the transaction containing the ` ForeignBridge.Withdraw ` event,
74
- signs the message and executes ` ForeignBridge.submitSignature(signature, message) ` .
75
- this collection of signatures on ` foreign ` is necessary because transactions are free
76
- for authorities on ` foreign ` , since they are the authorities of ` foreign ` , but not free on ` home ` .
72
+ for every ` ForeignBridge.Withdraw ` , every bridge authority creates a message containing
73
+ ` value ` , ` recipient ` and the ` transactionHash ` of the transaction referenced by the ` ForeignBridge.Withdraw ` event;
74
+ signs that message and executes ` ForeignBridge.submitSignature(signature, message) ` .
75
+ this collection of signatures is on ` foreign ` because transactions are free for the authorities on ` foreign ` ,
76
+ but not free on ` home ` .
77
77
78
78
once ` ForeignBridge.requiredSignatures ` signatures by distinct authorities are collected
79
79
a ` ForeignBridge.CollectedSignatures(authorityThatSubmittedLastSignature, messageHash) ` event is emitted.
@@ -146,9 +146,9 @@ bin = "contracts/KovanBridge.bin"
146
146
147
147
[authorities ]
148
148
accounts = [
149
- " 0x006e27b6a72e1f34c626762f3c4761547aff1421" ,
150
- " 0x006e27b6a72e1f34c626762f3c4761547aff1421" ,
151
- " 0x006e27b6a72e1f34c626762f3c4761547aff1421"
149
+ " 0x006e27b6a72e1f34c626762f3c4761547aff1421" ,
150
+ " 0x006e27b6a72e1f34c626762f3c4761547aff1421" ,
151
+ " 0x006e27b6a72e1f34c626762f3c4761547aff1421"
152
152
]
153
153
required_signatures = 2
154
154
@@ -221,7 +221,7 @@ checked_withdraw_confirm = 121
221
221
- ` foreign_deploy ` - block number at which foreign contract has been deployed
222
222
- ` checked_deposit_relay ` - number of the last block for which an authority has relayed deposits to the foreign
223
223
- ` checked_withdraw_relay ` - number of the last block for which an authority has relayed withdraws to the home
224
- - ` checked_withdraw_confirm ` - number of the last block for which an authirty has confirmed withdraw
224
+ - ` checked_withdraw_confirm ` - number of the last block for which an authority has confirmed withdraw
225
225
226
226
### example run
227
227
@@ -255,8 +255,8 @@ that shuts down an attack that enabled exhaustion of authorities funds on `home`
255
255
read on for a more thorough explanation.
256
256
257
257
parity-bridge connects a value-bearing ethereum blockchain ` home `
258
- (initally the ethereum foundation chain)
259
- to a non-value-bearing PoA ethereum blockchain ` foreign ` (initally the kovan testnet).
258
+ (initially the ethereum foundation chain)
259
+ to a non-value-bearing PoA ethereum blockchain ` foreign ` (initially the kovan testnet).
260
260
261
261
value-bearing means that the ether on that chain has usable value in the sense that
262
262
in order to obtain it one has to either mine it (trade in electricity)
0 commit comments