Skip to content

Commit

Permalink
Fix typos (#1130)
Browse files Browse the repository at this point in the history
* BOLT 04: fix typos
* proposals: fix typos
  • Loading branch information
xiaolou86 authored Jan 30, 2024
1 parent a4b6357 commit 9f55ccd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions 04-onion-routing.md
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,7 @@ func NewOnionPacket(paymentPath []*btcec.PublicKey, sessionKey *btcec.PrivateKey
var nextHmac [hmacSize]byte

// Our starting packet needs to be filled out with random bytes, we
// generate some determinstically using the session private key.
// generate some deterministically using the session private key.
paddingKey := generateKey("pad", sessionKey.Serialize()
paddingBytes := generateCipherStream(paddingKey, routingInfoSize)
copy(mixHeader[:], paddingBytes)
Expand Down Expand Up @@ -1500,7 +1500,7 @@ The writer:

- MUST set the `onion_message_packet` `version` to 0.
- MUST construct the `onion_message_packet` `onionmsg_payloads` as detailed above using Sphinx.
- MUST NOT use any `associated_data` in the Sphinx construcion.
- MUST NOT use any `associated_data` in the Sphinx construction.
- SHOULD set `onion_message_packet` `len` to 1366 or 32834.
- SHOULD retry via a different path if it expects a response and doesn't receive one after a reasonable period.
- For the non-final nodes' `onionmsg_tlv`:
Expand Down
4 changes: 2 additions & 2 deletions proposals/route-blinding.md
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ channels described above and adds a safety margin in case nodes update their rel

Alice uses the same values for both channels for simplicity's sake. Alice can now compute aggregate
values for the complete route (iteratively starting from the end of the route), using integer
arithmetric to compute `ceil(a/b)` as `(a+b-1)/b` (we round values up, otherwise the sender may
arithmetic to compute `ceil(a/b)` as `(a+b-1)/b` (we round values up, otherwise the sender may
receive slightly less than intended):

* `route_fee_base_msat(n+1) = (fee_base_msat(n+1) * 1000000 + route_fee_base_msat(n) * (1000000 + fee_proportional_millionths(n+1)) + 1000000 - 1) / 1000000`
Expand Down Expand Up @@ -459,7 +459,7 @@ periodically refresh them.

### Recipient pays fees

It may be unfair to make payers pay more fees to accomodate the recipient's wish for anonymity.
It may be unfair to make payers pay more fees to accommodate the recipient's wish for anonymity.
It should instead be the recipient that pays the fees of the blinded hops (and the payer pays the
fees to reach the introduction point).

Expand Down

0 comments on commit 9f55ccd

Please sign in to comment.