Skip to content

Commit

Permalink
fix: spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
bkioshn committed Sep 2, 2024
1 parent 53e9c47 commit 019118e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .config/dictionaries/project.dic
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@ abcz
abnf
ABNF
addrr
addrs
adminer
alpn
apskhem
asyncio
auditability
Autoupdate
backpressure
bech
bindgen
bkioshn
blockdiag
Expand Down Expand Up @@ -59,6 +61,7 @@ encryptor
Errno
etype
excalidraw
extn
fadvise
fcntl
fdatasync
Expand Down
2 changes: 2 additions & 0 deletions hermes/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# cspell: words licence moka

[workspace]
resolver = "2"
members = ["bin", "crates/cardano-chain-follower", "crates/hermes-ipfs"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
//! Doc Reference: <https://github.com/input-output-hk/catalyst-CIPs/tree/x509-envelope-metadata/CIP-XXXX>
//! CDDL Reference: <https://github.com/input-output-hk/catalyst-CIPs/blob/x509-envelope-metadata/CIP-XXXX/x509-envelope.cddl>
// cspell: words pkix
use c509_certificate::general_names::general_name::GeneralNameValue;
use decode_helper::{decode_bytes, decode_map_len, decode_u8};
use der_parser::{asn1_rs::oid, der::parse_der_sequence, Oid};
Expand Down Expand Up @@ -354,8 +355,8 @@ impl Cip509 {
Some(inputs_hash == self.txn_inputs_hash)
}

/// Validate the auxiliary data with the auxilliary data hash in the transaction.
/// Also log out the pre-computed hash where the validation signatrue (99) set to
/// Validate the auxiliary data with the auxiliary data hash in the transaction.
/// Also log out the pre-computed hash where the validation signature (99) set to
/// zero.
fn validate_aux(
&self, txn: &MultiEraTx, validation_report: &mut ValidationReport,
Expand Down Expand Up @@ -492,7 +493,7 @@ impl Cip509 {
}
}

/// Validate the public key in the certificate with witness set in transaciton.
/// Validate the public key in the certificate with witness set in transaction.
#[allow(clippy::too_many_lines)]
fn validate_public_key(
&self, txn: &MultiEraTx, validation_report: &mut ValidationReport,
Expand Down
2 changes: 1 addition & 1 deletion hermes/crates/cardano-chain-follower/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ pub(crate) fn extract_cip19_hash(uri: &str) -> Option<Vec<u8>> {
}
}

/// Extract the first 28 nytes from the given key
/// Extract the first 28 bytes from the given key
pub(crate) fn extract_key_hash(key: &[u8]) -> Option<Vec<u8>> {
key.get(1..29).map(<[u8]>::to_vec)
}
Expand Down

0 comments on commit 019118e

Please sign in to comment.