diff --git a/components/zcash_address/src/kind/unified/address.rs b/components/zcash_address/src/kind/unified/address.rs index 4afa9b8bb..7b168a090 100644 --- a/components/zcash_address/src/kind/unified/address.rs +++ b/components/zcash_address/src/kind/unified/address.rs @@ -211,7 +211,7 @@ pub mod testing { } /// Generates an arbitrary Unified address containing receivers corresponding to the provided - /// set of typecodes.. The receivers of this address are ikely to not represent valid protocol + /// set of typecodes. The receivers of this address are likely to not represent valid protocol /// receivers, and should only be used for testing parsing and/or encoding functions that do /// not concern themselves with the validity of the underlying receivers. pub fn arb_unified_address_for_typecodes( @@ -231,7 +231,7 @@ pub mod testing { .collect::>() } - /// Generates an arbitrary Unified address. The receivers of this address are ikely to not + /// Generates an arbitrary Unified address. The receivers of this address are likely to not /// represent valid protocol receivers, and should only be used for testing parsing and/or /// encoding functions that do not concern themselves with the validity of the underlying /// receivers. diff --git a/components/zip321/LICENSE-MIT b/components/zip321/LICENSE-MIT index 1581c90d1..35ad1aa6e 100644 --- a/components/zip321/LICENSE-MIT +++ b/components/zip321/LICENSE-MIT @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2017-2019 Electric Coin Company +Copyright (c) 2017-2024 Electric Coin Company Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/zcash_keys/src/address.rs b/zcash_keys/src/address.rs index 615f6158e..0ea820fe4 100644 --- a/zcash_keys/src/address.rs +++ b/zcash_keys/src/address.rs @@ -269,6 +269,8 @@ impl Receiver { } } + /// Returns whether or not this receiver corresponds to `addr`, or is contained + /// in `addr` when the latter is a Unified Address. pub fn corresponds(&self, addr: &ZcashAddress) -> bool { addr.matches_receiver(&match self { #[cfg(feature = "orchard")]