Skip to content

Commit 529dc03

Browse files
authored
typo fixes (anza-xyz#4825)
1 parent 843856b commit 529dc03

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

ledger/src/shred/merkle.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ impl ShredCodeTrait for ShredCode {
639639
}
640640
}
641641

642-
// Obtains parent's hash by joining two sibiling nodes in merkle tree.
642+
// Obtains parent's hash by joining two sibling nodes in merkle tree.
643643
fn join_nodes<S: AsRef<[u8]>, T: AsRef<[u8]>>(node: S, other: T) -> Hash {
644644
let node = &node.as_ref()[..SIZE_OF_MERKLE_PROOF_ENTRY];
645645
let other = &other.as_ref()[..SIZE_OF_MERKLE_PROOF_ENTRY];
@@ -915,7 +915,7 @@ pub(super) fn recover(
915915
shred.merkle_node()
916916
});
917917
let tree = make_merkle_tree(nodes)?;
918-
// The attched signature verfies only if we obtain the same Merkle root.
918+
// The attached signature verifies only if we obtain the same Merkle root.
919919
// Because shreds obtained from turbine or repair are sig-verified, this
920920
// also means that we don't need to verify signatures for recovered shreds.
921921
if tree.last() != Some(&merkle_root) {
@@ -1202,7 +1202,7 @@ pub(super) fn make_shreds_from_data(
12021202
if !data.is_empty() || shreds.is_empty() {
12031203
// Should generate at least one data shred (which may have no data).
12041204
// Last erasure batch should also be padded with empty data shreds to
1205-
// make >= 32 data shreds. This gaurantees that the batch cannot be
1205+
// make >= 32 data shreds. This guarantees that the batch cannot be
12061206
// recovered unless 32+ shreds are received from turbine or repair.
12071207
let min_num_data_shreds = if is_last_in_slot {
12081208
DATA_SHREDS_PER_FEC_BLOCK

sdk/secp256r1-program/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ mod target_arch {
585585

586586
// Since Transaction::verify_precompiles only returns a vague
587587
// `InvalidAccountIndex` error on precompile failure, we use verify()
588-
// here direclty to check for the specific
588+
// here directly to check for the specific
589589
// InvalidSignatureValueRange error
590590
let tx_fail = verify(
591591
instruction.data.as_slice(),

zk-token-sdk/src/sigma_proofs/pubkey_proof.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ impl PubkeyValidityProof {
9595
) -> Result<(), PubkeyValidityProofVerificationError> {
9696
transcript.pubkey_proof_domain_separator();
9797

98-
// extract the relvant scalar and Ristretto points from the input
98+
// extract the relevant scalar and Ristretto points from the input
9999
let P = elgamal_pubkey.get_point();
100100

101101
// include Y to transcript and extract challenge

0 commit comments

Comments
 (0)