Fix spelling errors and correct minor errors (#337)

* fix typo lib.rs

* fix typos mod.rs

* fix typo config.rs
This commit is contained in:
Tronica 2025-02-18 02:11:13 +01:00 committed by GitHub
parent 3d9aa8c940
commit a915766840
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 4 deletions

View File

@ -103,7 +103,7 @@ pub struct Config {
/// Subscribe to all subnets for the duration of the runtime.
pub subscribe_all_subnets: bool,
/// Import/aggregate all attestations recieved on subscribed subnets for the duration of the
/// Import/aggregate all attestations received on subscribed subnets for the duration of the
/// runtime.
pub import_all_attestations: bool,

View File

@ -42,9 +42,9 @@ pub trait EnrKey: Send + Sync + Unpin + 'static {
/// Returns the public key associated with current key pair.
fn public(&self) -> Self::PublicKey;
/// Provides a method to decode a raw public key from an ENR `BTreeMap` to a useable public key.
/// Provides a method to decode a raw public key from an ENR `BTreeMap` to a usable public key.
///
/// This method allows a key type to decode the raw bytes in an ENR to a useable
/// This method allows a key type to decode the raw bytes in an ENR to a usable
/// `EnrPublicKey`. It takes the ENR's `BTreeMap` and returns a public key.
///
/// Note: This specifies the supported key schemes for an ENR.

View File

@ -1195,7 +1195,7 @@ mod tests {
assert_eq!(enr.tcp4(), Some(tcp));
assert!(enr.verify());
// Compare the encoding as the key itself can be differnet
// Compare the encoding as the key itself can be different
assert_eq!(enr.public_key().encode(), key.public().encode(),);
}