From 9f55ccdfee54534f4de8339f8934415b218ec84a Mon Sep 17 00:00:00 2001 From: xiaolou86 <20718693+xiaolou86@users.noreply.github.com> Date: Tue, 30 Jan 2024 13:54:54 +0800 Subject: [PATCH] Fix typos (#1130) * BOLT 04: fix typos * proposals: fix typos --- 04-onion-routing.md | 4 ++-- proposals/route-blinding.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/04-onion-routing.md b/04-onion-routing.md index 4f9d50a..b62f487 100644 --- a/04-onion-routing.md +++ b/04-onion-routing.md @@ -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) @@ -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`: diff --git a/proposals/route-blinding.md b/proposals/route-blinding.md index 79fca3f..0874b23 100644 --- a/proposals/route-blinding.md +++ b/proposals/route-blinding.md @@ -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` @@ -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).