Skip to content

Commit df30f3b

Browse files
authored
Run codespell spellcheck on source (payjoin#562)
2 parents 2761db1 + 16c99ec commit df30f3b

File tree

15 files changed

+33
-23
lines changed

15 files changed

+33
-23
lines changed

.codespellrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[codespell]
2+
skip = .git,target,Cargo.toml,Cargo.lock,Cargo-minimal.lock,Cargo-recent.lock
3+
ignore-words-list = crate,ser

.github/workflows/rust.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,10 @@ jobs:
7373
run: bash contrib/coverage.sh
7474
- name: "Upload report to coveralls"
7575
uses: coverallsapp/github-action@v2
76+
77+
CodeSpell:
78+
name: Code spell check
79+
runs-on: ubuntu-latest
80+
steps:
81+
- uses: actions/checkout@v4
82+
- uses: codespell-project/actions-codespell@v2

payjoin-directory/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Payjoin v2 Directory Server
44

5-
Payjoin v2 peers store and forward HTTP client messages via a directory server in order to cordinate an asynchronous Payjoin transaction. Version 1 Requires the receiver to host a public HTTP server and to set up security using either HTTPS or Onion Services above and beyond typical HTTP client operation.
5+
Payjoin v2 peers store and forward HTTP client messages via a directory server in order to coordinate an asynchronous Payjoin transaction. Version 1 Requires the receiver to host a public HTTP server and to set up security using either HTTPS or Onion Services above and beyond typical HTTP client operation.
66

77
V2 clients use Hybrid Pubkey Encryption established in the bitcoin URI payment request for security instead, allowing lightweight clients secure communication without the burden of setup, which is done by the operator of this third-party directory server. This directory only sees OHTTP encapsulated, encrypted requests to prevent it from collecting metadata to break the privacy benefits of payjoin for messages who follow the spec.
88

payjoin-test-utils/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ pub fn init_bitcoind_multi_sender_single_reciever(
200200
let wallets_to_create =
201201
(0..number_of_senders + 1).map(|i| (format!("sender_{}", i), None)).collect::<Vec<_>>();
202202
let mut wallets = create_and_fund_wallets(&bitcoind, wallets_to_create)?;
203-
let receiver = wallets.pop().expect("reciever to exist");
203+
let receiver = wallets.pop().expect("receiver to exist");
204204
let senders = wallets;
205205

206206
Ok((bitcoind, senders, receiver))

payjoin/CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ This release attempts to stabilize the Payjoin V2 Bitcoin URI format. That inclu
133133
- Derive `Debug, Clone` from `send::Request`, `receive::UncheckedProposal`, `optional_parameters::Params`
134134
- Don't derive `Debug, Clone` from `uri::{Payjoin, PayjoinParams}`
135135
- Derive `Serialize, Deserialize` for `RequestContext` and `Enrolled` in `v2` to enable persistent state for asynchronous requests
136-
- `UncheckedProposal::check_can_broadcast` became `::check_broadcast_suitability` allowing receiver to specify minnimum acceptable feerate
136+
- `UncheckedProposal::check_can_broadcast` became `::check_broadcast_suitability` allowing receiver to specify minimum acceptable feerate
137137

138138
## 0.11.0
139139

@@ -144,7 +144,7 @@ This release attempts to stabilize the Payjoin V2 Bitcoin URI format. That inclu
144144
- Export `base64` with feature by @jbesraa in #102
145145
- Improve `receive` api with `ProvisionalProposal`by @jbesraa in #90
146146
- Document `create_pj_request` by @jbesraa in #87
147-
- Add BIP 78 reccommended fee `Configuration` by @DanGould in #86
147+
- Add BIP 78 recommended fee `Configuration` by @DanGould in #86
148148

149149
## 0.9.0
150150

payjoin/src/io.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use crate::OhttpKeys;
77

88
/// Fetch the ohttp keys from the specified payjoin directory via proxy.
99
///
10-
/// * `ohttp_relay`: The http CONNNECT method proxy to request the ohttp keys from a payjoin
10+
/// * `ohttp_relay`: The http CONNECT method proxy to request the ohttp keys from a payjoin
1111
/// directory. Proxying requests for ohttp keys ensures a client IP address is never revealed to
1212
/// the payjoin directory.
1313
///
@@ -27,7 +27,7 @@ pub async fn fetch_ohttp_keys(
2727

2828
/// Fetch the ohttp keys from the specified payjoin directory via proxy.
2929
///
30-
/// * `ohttp_relay`: The http CONNNECT method proxy to request the ohttp keys from a payjoin
30+
/// * `ohttp_relay`: The http CONNECT method proxy to request the ohttp keys from a payjoin
3131
/// directory. Proxying requests for ohttp keys ensures a client IP address is never revealed to
3232
/// the payjoin directory.
3333
///

payjoin/src/receive/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ pub(crate) enum InternalPayloadError {
174174
///
175175
/// First argument is the calculated fee rate of the original PSBT.
176176
///
177-
/// Second argument is the minimum fee rate optionaly set by the receiver.
177+
/// Second argument is the minimum fee rate optionally set by the receiver.
178178
PsbtBelowFeeRate(bitcoin::FeeRate, bitcoin::FeeRate),
179179
/// Effective receiver feerate exceeds maximum allowed feerate
180180
FeeTooHigh(bitcoin::FeeRate, bitcoin::FeeRate),

payjoin/src/receive/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
//! This module contains types and methods used to implement receiving via Payjoin.
44
//!
55
//! For most use cases, we recommended enabling the `v2` feature, as it is
6-
//! backwards compatible and provides the most convenient experience for users and implementors.
6+
//! backwards compatible and provides the most convenient experience for users and implementers.
77
//! To use version 2, refer to `receive::v2` module documentation.
88
//!
99
//! If you specifically need to use

payjoin/src/receive/optional_parameters.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ impl Params {
8282
Ok(fee_rate_sat_per_vb) => {
8383
// TODO Parse with serde when rust-bitcoin supports it
8484
let fee_rate_sat_per_kwu = fee_rate_sat_per_vb * 250.0_f32;
85-
// since it's a minnimum, we want to round up
85+
// since it's a minimum, we want to round up
8686
FeeRate::from_sat_per_kwu(fee_rate_sat_per_kwu.ceil() as u64)
8787
}
8888
Err(_) => return Err(Error::FeeRate),

payjoin/src/receive/v1/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ impl UncheckedProposal {
8080
/// Receiver MUST check that the Original PSBT from the sender
8181
/// can be broadcast, i.e. `testmempoolaccept` bitcoind rpc returns { "allowed": true,.. }.
8282
///
83-
/// Receiver can optionaly set a minimum feerate that will be enforced on the Original PSBT.
83+
/// Receiver can optionally set a minimum feerate that will be enforced on the Original PSBT.
8484
/// This can be used to prevent probing attacks and make it easier to deal with
8585
/// high feerate environments.
8686
///
@@ -794,7 +794,7 @@ pub(crate) mod test {
794794
use super::*;
795795

796796
// OriginalPSBT Test Vector from BIP
797-
// | InputScriptType | Orginal PSBT Fee rate | maxadditionalfeecontribution | additionalfeeoutputindex|
797+
// | InputScriptType | Original PSBT Fee rate | maxadditionalfeecontribution | additionalfeeoutputindex|
798798
// |-----------------|-----------------------|------------------------------|-------------------------|
799799
// | P2SH-P2WPKH | 2 sat/vbyte | 0.00000182 | 0 |
800800
pub const ORIGINAL_PSBT: &str = "cHNidP8BAHMCAAAAAY8nutGgJdyYGXWiBEb45Hoe9lWGbkxh/6bNiOJdCDuDAAAAAAD+////AtyVuAUAAAAAF6kUHehJ8GnSdBUOOv6ujXLrWmsJRDCHgIQeAAAAAAAXqRR3QJbbz0hnQ8IvQ0fptGn+votneofTAAAAAAEBIKgb1wUAAAAAF6kU3k4ekGHKWRNbA1rV5tR5kEVDVNCHAQcXFgAUx4pFclNVgo1WWAdN1SYNX8tphTABCGsCRzBEAiB8Q+A6dep+Rz92vhy26lT0AjZn4PRLi8Bf9qoB/CMk0wIgP/Rj2PWZ3gEjUkTlhDRNAQ0gXwTO7t9n+V14pZ6oljUBIQMVmsAaoNWHVMS02LfTSe0e388LNitPa1UQZyOihY+FFgABABYAFEb2Giu6c4KO5YW0pfw3lGp9jMUUAAA=";

0 commit comments

Comments
 (0)