Skip to content

Commit 1f2711e

Browse files
committed
Merge #193: Fix typos
8e26a25 Fix typo in src/transaction.rs (Thabokani) b6361d2 Fix typo in src/pset/mod.rs (Thabokani) e43213a Fix typo in src/pset/error.rs (Thabokani) 73206b4 Fix typo in src/pset/elip100.rs (Thabokani) c3885e1 Fix typo in src/opcodes.rs (Thabokani) 3e0f06c Fix typo in examples/pset_blind_coinjoin.rs (Thabokani) Pull request description: ACKs for top commit: apoelstra: ACK 8e26a25 Tree-SHA512: 5f0e13c3231afbd6a84d9f1114fac4ced36ecc4ae1a6ea2e356e1f836784dc78034b3692e178bf70b4fc484821dc2b6c59bca4485b797c1c0ef9b5c1426a159d
2 parents d2fc5c5 + 8e26a25 commit 1f2711e

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

examples/pset_blind_coinjoin.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! PSET coinjoin example
2-
//! 1. Person `A` create a transcation with 1 input and 3 outputs(1 fee output)
3-
//! 2. Person `B` takes the transcation from A and adds one input and two outputs
2+
//! 1. Person `A` create a transaction with 1 input and 3 outputs(1 fee output)
3+
//! 2. Person `B` takes the transaction from A and adds one input and two outputs
44
//! which transact another confidential asset
55
//! 3. Person `B` blinds it's own outputs and gives the pset back to A
66
//! 4. B completly blinds the transaction

src/opcodes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ pub mod all {
531531
/// pop the first number(8 byte LE) as b followed another pop for a(8 byte LE). Push a >= b.
532532
/// Note that this operation cannot fail
533533
pub const OP_GREATERTHANOREQUAL64: All = All {code: 0xdf};
534-
/// pop the stack as minimal CSciptNum, push 8 byte signed LE corresponding to that number.
534+
/// pop the stack as minimal CScriptNum, push 8 byte signed LE corresponding to that number.
535535
pub const OP_SCRIPTNUMTOLE64: All = All {code: 0xe0};
536536
/// pop the stack as a 8 byte signed LE. Convert to CScriptNum and push it, abort on fail.
537537
/// Please check the range of the operand before calling the opcode.

src/pset/elip100.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
//! <https://github.com/ElementsProject/ELIPs/blob/main/elip-0100.mediawiki>
44
//! but excluding contract validation.
55
//!
6-
//! ELIP0100 defines how to inlcude assets metadata, such as the contract defining the asset and
6+
//! ELIP0100 defines how to include assets metadata, such as the contract defining the asset and
77
//! the issuance prevout inside a PSET
88
//!
99
//! To use check [`PartiallySignedTransaction::add_asset_metadata`] and

src/pset/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ pub enum Error {
8383
ConsensusEncoding,
8484
/// Too Large Pset
8585
TooLargePset,
86-
/// Specified a feild in from psbt v0. Disallowed in psbtv2(pset)
86+
/// Specified a field in from psbt v0. Disallowed in psbtv2(pset)
8787
ExpiredPsbtv0Field,
8888
/// Cannot change pset version
8989
IncorrectPsetVersion,

src/pset/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ impl PartiallySignedTransaction {
553553
// Push the scalar
554554
// BUG in pset
555555
// Bug in Pset, scalars can be the same value, but there is no place
556-
// in pset to place them as it would break the uniqueness constriant.
556+
// in pset to place them as it would break the uniqueness constraint.
557557
self.global.scalars.push(vbf2.into_inner());
558558
Ok(ret)
559559
}

src/transaction.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ impl ::std::str::FromStr for OutPoint {
162162
/// - Indicating whether absolute lock-time (specified in `lock_time` field of [`Transaction`])
163163
/// is enabled.
164164
/// - Indicating and encoding [BIP-68] relative lock-times.
165-
/// - Indicating whether a transcation opts-in to [BIP-125] replace-by-fee.
165+
/// - Indicating whether a transaction opts-in to [BIP-125] replace-by-fee.
166166
///
167167
/// Note that transactions spending an output with `OP_CHECKLOCKTIMEVERIFY`MUST NOT use
168168
/// `Sequence::MAX` for the corresponding input. [BIP-65]

0 commit comments

Comments
 (0)