pub enum Address {
+Address in zcash_client_backend::address - Rust Enum Address
pub enum Address {
Sapling(PaymentAddress),
Transparent(TransparentAddress),
Unified(UnifiedAddress),
@@ -8,35 +8,35 @@
§Transparent(TransparentAddress)
A transparent address corresponding to either a public key hash or a script hash.
§Unified(UnifiedAddress)
A ZIP 316 Unified Address.
§Tex([u8; 20])
A ZIP 320 transparent-source-only P2PKH address, or “TEX address”.
-
Implementations§
Source§impl Address
impl Address
Implementations§
§impl Address
impl Address
pub fn decode<P>(params: &P, s: &str) -> Option<Address>where
P: Parameters,
pub fn decode<P>(params: &P, s: &str) -> Option<Address>where
P: Parameters,
Attempts to decode an Address
value from its [ZcashAddress
] encoded representation.
Returns None
if any error is encountered in decoding. Use
[Self::try_from_zcash_address(s.parse()?)?
] if you need detailed error information.
Sourcepub fn try_from_zcash_address<P>(
+
pub fn try_from_zcash_address<P>( +
pub fn try_from_zcash_address<P>(
params: &P,
zaddr: ZcashAddress,
) -> Result<Address, ConversionError<&'static str>>where
P: Parameters,
pub fn try_from_zcash_address<P>(
params: &P,
zaddr: ZcashAddress,
) -> Result<Address, ConversionError<&'static str>>where
P: Parameters,
Attempts to decode an Address
value from its [ZcashAddress
] encoded representation.
Sourcepub fn to_zcash_address<P>(&self, params: &P) -> ZcashAddresswhere
+
pub fn to_zcash_address<P>(&self, params: &P) -> ZcashAddresswhere
+
pub fn to_zcash_address<P>(&self, params: &P) -> ZcashAddresswhere
P: Parameters,
pub fn to_zcash_address<P>(&self, params: &P) -> ZcashAddresswhere
P: Parameters,
Converts this Address
to its encoded [ZcashAddress
] representation.
pub fn encode<P>(&self, params: &P) -> Stringwhere
P: Parameters,
pub fn encode<P>(&self, params: &P) -> Stringwhere
P: Parameters,
Converts this Address
to its encoded string representation.
Sourcepub fn can_receive_as(&self, pool_type: PoolType) -> bool
pub fn can_receive_as(&self, pool_type: PoolType) -> bool
Returns whether or not this Address
can receive funds in the specified pool.
Trait Implementations§
Source§impl From<UnifiedAddress> for Address
impl From<UnifiedAddress> for Address
Source§fn from(addr: UnifiedAddress) -> Address
fn from(addr: UnifiedAddress) -> Address
pub fn can_receive_as(&self, pool_type: PoolType) -> bool
pub fn can_receive_as(&self, pool_type: PoolType) -> bool
Returns whether or not this Address
can receive funds in the specified pool.
Trait Implementations§
§impl From<UnifiedAddress> for Address
impl From<UnifiedAddress> for Address
§fn from(addr: UnifiedAddress) -> Address
fn from(addr: UnifiedAddress) -> Address
§impl TryFromRawAddress for Address
impl TryFromRawAddress for Address
§type Error = &'static str
type Error = &'static str
Self::try_from_raw_sapling
] as a valid Sapling address).fn try_from_raw_sapling( data: [u8; 43], -) -> Result<Address, ConversionError<<Address as TryFromRawAddress>::Error>>
fn try_from_raw_unified( +) -> Result<Address, ConversionError<<Address as TryFromRawAddress>::Error>>
fn try_from_raw_unified( ua: Address, -) -> Result<Address, ConversionError<<Address as TryFromRawAddress>::Error>>
fn try_from_raw_transparent_p2pkh( +) -> Result<Address, ConversionError<<Address as TryFromRawAddress>::Error>>
fn try_from_raw_transparent_p2pkh( data: [u8; 20], -) -> Result<Address, ConversionError<<Address as TryFromRawAddress>::Error>>
fn try_from_raw_transparent_p2sh( +) -> Result<Address, ConversionError<<Address as TryFromRawAddress>::Error>>
fn try_from_raw_transparent_p2sh( data: [u8; 20], -) -> Result<Address, ConversionError<<Address as TryFromRawAddress>::Error>>
fn try_from_raw_tex( +) -> Result<Address, ConversionError<<Address as TryFromRawAddress>::Error>>
fn try_from_raw_tex( data: [u8; 20], ) -> Result<Address, ConversionError<<Address as TryFromRawAddress>::Error>>
fn try_from_raw_sprout( data: [u8; 64], -) -> Result<Self, ConversionError<Self::Error>>
impl Eq for Address
impl StructuralPartialEq for Address
Auto Trait Implementations§
impl Freeze for Address
impl RefUnwindSafe for Address
impl Send for Address
impl Sync for Address
impl Unpin for Address
impl UnwindSafe for Address
Blanket Implementations§
Auto Trait Implementations§
impl Freeze for Address
impl RefUnwindSafe for Address
impl Send for Address
impl Sync for Address
impl Unpin for Address
impl UnwindSafe for Address
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
diff --git a/rustdoc/latest/zcash_client_backend/address/enum.Receiver.html b/rustdoc/latest/zcash_client_backend/address/enum.Receiver.html
index fcbba54a0..b42b9f29d 100644
--- a/rustdoc/latest/zcash_client_backend/address/enum.Receiver.html
+++ b/rustdoc/latest/zcash_client_backend/address/enum.Receiver.html
@@ -1,15 +1,15 @@
-Receiver in zcash_client_backend::address - Rust pub enum Receiver {
+Receiver in zcash_client_backend::address - Rust Enum Receiver
pub enum Receiver {
Sapling(PaymentAddress),
Transparent(TransparentAddress),
}
Expand description
An enumeration of protocol-level receiver types.
While these correspond to unified address receiver types, this is a distinct type because it is
used to represent the protocol-level recipient of a transfer, instead of a part of an encoded
address.
-Variants§
Implementations§
Source§impl Receiver
Sourcepub fn to_zcash_address(&self, net: NetworkType) -> ZcashAddress
Converts this receiver to a [ZcashAddress
] for the given network.
+Variants§
Implementations§
§impl Receiver
pub fn to_zcash_address(&self, net: NetworkType) -> ZcashAddress
Converts this receiver to a [ZcashAddress
] for the given network.
This conversion function selects the least-capable address format possible; this means that
Orchard receivers will be rendered as Unified addresses, Sapling receivers will be rendered
as bare Sapling addresses, and Transparent receivers will be rendered as taddrs.
-Sourcepub fn corresponds(&self, addr: &ZcashAddress) -> bool
Returns whether or not this receiver corresponds to addr
, or is contained
+
pub fn corresponds(&self, addr: &ZcashAddress) -> bool
Returns whether or not this receiver corresponds to addr
, or is contained
in addr
when the latter is a Unified Address.
Auto Trait Implementations§
§impl Freeze for Receiver
§impl RefUnwindSafe for Receiver
§impl Send for Receiver
§impl Sync for Receiver
§impl Unpin for Receiver
§impl UnwindSafe for Receiver
Blanket Implementations§
Source§impl<T> Borrow<T> for Twhere
diff --git a/rustdoc/latest/zcash_client_backend/address/index.html b/rustdoc/latest/zcash_client_backend/address/index.html
index e7a16670c..834340fa5 100644
--- a/rustdoc/latest/zcash_client_backend/address/index.html
+++ b/rustdoc/latest/zcash_client_backend/address/index.html
@@ -1,2 +1,2 @@
-zcash_client_backend::address - Rust Expand description
Structs for handling supported address types.
+zcash_client_backend::address - Rust
\ No newline at end of file
diff --git a/rustdoc/latest/zcash_client_backend/address/struct.UnifiedAddress.html b/rustdoc/latest/zcash_client_backend/address/struct.UnifiedAddress.html
index 3fd880199..2e0a63514 100644
--- a/rustdoc/latest/zcash_client_backend/address/struct.UnifiedAddress.html
+++ b/rustdoc/latest/zcash_client_backend/address/struct.UnifiedAddress.html
@@ -1,25 +1,25 @@
-UnifiedAddress in zcash_client_backend::address - Rust pub struct UnifiedAddress { /* private fields */ }
Expand description
A Unified Address.
-Implementations§
Source§impl UnifiedAddress
Sourcepub fn from_receivers(
+UnifiedAddress in zcash_client_backend::address - Rust Struct UnifiedAddress
pub struct UnifiedAddress { /* private fields */ }
Expand description
A Unified Address.
+Implementations§
§impl UnifiedAddress
pub fn from_receivers(
sapling: Option<PaymentAddress>,
transparent: Option<TransparentAddress>,
) -> Option<UnifiedAddress>
Constructs a Unified Address from a given set of receivers.
Returns None
if the receivers would produce an invalid Unified Address (namely,
if no shielded receiver is provided).
-Sourcepub fn has_orchard(&self) -> bool
Returns whether this address has an Orchard receiver.
+pub fn has_orchard(&self) -> bool
Returns whether this address has an Orchard receiver.
This method is available irrespective of whether the orchard
feature flag is enabled.
-Sourcepub fn has_sapling(&self) -> bool
Returns whether this address has a Sapling receiver.
-Sourcepub fn sapling(&self) -> Option<&PaymentAddress>
Available on crate feature sapling
only.
Returns the Sapling receiver within this Unified Address, if any.
-Sourcepub fn has_transparent(&self) -> bool
Returns whether this address has a Transparent receiver.
-Sourcepub fn transparent(&self) -> Option<&TransparentAddress>
Returns the transparent receiver within this Unified Address, if any.
-Sourcepub fn unknown(&self) -> &[(u32, Vec<u8>)]
Returns the set of unknown receivers of the unified address.
-pub fn has_sapling(&self) -> bool
Returns whether this address has a Sapling receiver.
+pub fn sapling(&self) -> Option<&PaymentAddress>
Available on crate feature sapling
only.
Returns the Sapling receiver within this Unified Address, if any.
+pub fn has_transparent(&self) -> bool
Returns whether this address has a Transparent receiver.
+pub fn transparent(&self) -> Option<&TransparentAddress>
Returns the transparent receiver within this Unified Address, if any.
+pub fn unknown(&self) -> &[(u32, Vec<u8>)]
Returns the set of unknown receivers of the unified address.
+pub fn encode<P>(&self, params: &P) -> Stringwhere
P: Parameters,
Returns the string encoding of this UnifiedAddress
for the given network.
-Sourcepub fn receiver_types(&self) -> Vec<Typecode>
Returns the set of receiver typecodes.
-Trait Implementations§
Source§impl<P> AddressCodec<P> for UnifiedAddresswhere
- P: Parameters,
Source§impl Clone for UnifiedAddress
Source§fn clone(&self) -> UnifiedAddress
Returns a copy of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moreSource§impl Debug for UnifiedAddress
Source§impl From<UnifiedAddress> for Address
Source§fn from(addr: UnifiedAddress) -> Address
Converts to this type from the input type.Source§impl PartialEq for UnifiedAddress
Source§impl TryFrom<Address> for UnifiedAddress
pub fn receiver_types(&self) -> Vec<Typecode>
Returns the set of receiver typecodes.
+Trait Implementations§
§impl<P> AddressCodec<P> for UnifiedAddresswhere
+ P: Parameters,
§impl Clone for UnifiedAddress
§fn clone(&self) -> UnifiedAddress
Returns a copy of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more§impl Debug for UnifiedAddress
§impl From<UnifiedAddress> for Address
§fn from(addr: UnifiedAddress) -> Address
Converts to this type from the input type.§impl PartialEq for UnifiedAddress
§impl TryFrom<Address> for UnifiedAddress
§fn try_from(
ua: Address,
-) -> Result<UnifiedAddress, <UnifiedAddress as TryFrom<Address>>::Error>
Performs the conversion.Source§impl Eq for UnifiedAddress
Source§impl StructuralPartialEq for UnifiedAddress
Auto Trait Implementations§
§impl Freeze for UnifiedAddress
§impl RefUnwindSafe for UnifiedAddress
§impl Send for UnifiedAddress
§impl Sync for UnifiedAddress
§impl Unpin for UnifiedAddress
§impl UnwindSafe for UnifiedAddress
Blanket Implementations§
Source§impl<T> Any for Twhere
+) -> Result<UnifiedAddress, <UnifiedAddress as TryFrom<Address>>::Error>Performs the conversion.
§impl Eq for UnifiedAddress
§impl StructuralPartialEq for UnifiedAddress
Auto Trait Implementations§
§impl Freeze for UnifiedAddress
§impl RefUnwindSafe for UnifiedAddress
§impl Send for UnifiedAddress
§impl Sync for UnifiedAddress
§impl Unpin for UnifiedAddress
§impl UnwindSafe for UnifiedAddress
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moreSource§impl<T> CloneToUninit for Twhere
diff --git a/rustdoc/latest/zcash_client_backend/address/testing/fn.arb_addr.html b/rustdoc/latest/zcash_client_backend/address/testing/fn.arb_addr.html
index dae0e2a2d..987f22732 100644
--- a/rustdoc/latest/zcash_client_backend/address/testing/fn.arb_addr.html
+++ b/rustdoc/latest/zcash_client_backend/address/testing/fn.arb_addr.html
@@ -1,3 +1,3 @@
-arb_addr in zcash_client_backend::address::testing - Rust pub fn arb_addr(
+arb_addr in zcash_client_backend::address::testing - Rust Function arb_addr
pub fn arb_addr(
request: UnifiedAddressRequest,
) -> impl Strategy<Value = Address>
Available on (crate features orchard
or sapling
or transparent-inputs
) and crate feature test-dependencies
and crate feature sapling
only.
\ No newline at end of file
diff --git a/rustdoc/latest/zcash_client_backend/address/testing/fn.arb_unified_addr.html b/rustdoc/latest/zcash_client_backend/address/testing/fn.arb_unified_addr.html
index 5fd797ed4..dfec70de0 100644
--- a/rustdoc/latest/zcash_client_backend/address/testing/fn.arb_unified_addr.html
+++ b/rustdoc/latest/zcash_client_backend/address/testing/fn.arb_unified_addr.html
@@ -1,4 +1,4 @@
-arb_unified_addr in zcash_client_backend::address::testing - Rust pub fn arb_unified_addr(
+arb_unified_addr in zcash_client_backend::address::testing - Rust Function arb_unified_addr
pub fn arb_unified_addr(
params: Network,
request: UnifiedAddressRequest,
) -> impl Strategy<Value = UnifiedAddress>
Available on (crate features orchard
or sapling
or transparent-inputs
) and crate feature test-dependencies
only.
\ No newline at end of file
diff --git a/rustdoc/latest/zcash_client_backend/address/testing/index.html b/rustdoc/latest/zcash_client_backend/address/testing/index.html
index e04ddc071..e31de0773 100644
--- a/rustdoc/latest/zcash_client_backend/address/testing/index.html
+++ b/rustdoc/latest/zcash_client_backend/address/testing/index.html
@@ -1 +1 @@
-zcash_client_backend::address::testing - Rust
\ No newline at end of file
+zcash_client_backend::address::testing - Rust
\ No newline at end of file
diff --git a/rustdoc/latest/zcash_client_backend/encoding/enum.Bech32DecodeError.html b/rustdoc/latest/zcash_client_backend/encoding/enum.Bech32DecodeError.html
index dfcb3bbb1..456e31611 100644
--- a/rustdoc/latest/zcash_client_backend/encoding/enum.Bech32DecodeError.html
+++ b/rustdoc/latest/zcash_client_backend/encoding/enum.Bech32DecodeError.html
@@ -1,4 +1,4 @@
-Bech32DecodeError in zcash_client_backend::encoding - Rust pub enum Bech32DecodeError {
+Bech32DecodeError in zcash_client_backend::encoding - Rust Enum Bech32DecodeError
pub enum Bech32DecodeError {
Bech32Error(Error),
IncorrectVariant(Variant),
ReadError,
@@ -6,8 +6,8 @@
expected: String,
actual: String,
},
-}
Available on crate feature sapling
only.Variants§
Trait Implementations§
Source§impl Clone for Bech32DecodeError
Source§fn clone(&self) -> Bech32DecodeError
Returns a copy of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moreSource§impl Debug for Bech32DecodeError
Source§impl Display for Bech32DecodeError
Source§impl Error for Bech32DecodeError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<Error> for Bech32DecodeError
Source§fn from(err: Error) -> Bech32DecodeError
Converts to this type from the input type.Source§impl PartialEq for Bech32DecodeError
Source§impl Eq for Bech32DecodeError
Source§impl StructuralPartialEq for Bech32DecodeError
Auto Trait Implementations§
§impl Freeze for Bech32DecodeError
§impl RefUnwindSafe for Bech32DecodeError
§impl Send for Bech32DecodeError
§impl Sync for Bech32DecodeError
§impl Unpin for Bech32DecodeError
§impl UnwindSafe for Bech32DecodeError
Blanket Implementations§
Source§impl<T> Any for Twhere
+}Available on crate feature sapling
only.Variants§
Trait Implementations§
§impl Clone for Bech32DecodeError
§fn clone(&self) -> Bech32DecodeError
Returns a copy of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more§impl Debug for Bech32DecodeError
§impl Display for Bech32DecodeError
§impl Error for Bech32DecodeError
§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()§impl From<Error> for Bech32DecodeError
§fn from(err: Error) -> Bech32DecodeError
Converts to this type from the input type.§impl PartialEq for Bech32DecodeError
§impl Eq for Bech32DecodeError
§impl StructuralPartialEq for Bech32DecodeError
Auto Trait Implementations§
§impl Freeze for Bech32DecodeError
§impl RefUnwindSafe for Bech32DecodeError
§impl Send for Bech32DecodeError
§impl Sync for Bech32DecodeError
§impl Unpin for Bech32DecodeError
§impl UnwindSafe for Bech32DecodeError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moreSource§impl<T> CloneToUninit for Twhere
diff --git a/rustdoc/latest/zcash_client_backend/encoding/enum.TransparentCodecError.html b/rustdoc/latest/zcash_client_backend/encoding/enum.TransparentCodecError.html
index 130027814..0197804b8 100644
--- a/rustdoc/latest/zcash_client_backend/encoding/enum.TransparentCodecError.html
+++ b/rustdoc/latest/zcash_client_backend/encoding/enum.TransparentCodecError.html
@@ -1,7 +1,7 @@
-TransparentCodecError in zcash_client_backend::encoding - Rust pub enum TransparentCodecError {
+TransparentCodecError in zcash_client_backend::encoding - Rust Enum TransparentCodecError
pub enum TransparentCodecError {
UnsupportedAddressType(String),
Base58(Error),
-}
Variants§
Trait Implementations§
Source§impl Debug for TransparentCodecError
Source§impl Display for TransparentCodecError
Source§impl Error for TransparentCodecError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Auto Trait Implementations§
§impl Freeze for TransparentCodecError
§impl RefUnwindSafe for TransparentCodecError
§impl Send for TransparentCodecError
§impl Sync for TransparentCodecError
§impl Unpin for TransparentCodecError
§impl UnwindSafe for TransparentCodecError
Blanket Implementations§
Source§impl<T> Any for Twhere
+}Variants§
Trait Implementations§
§impl Debug for TransparentCodecError
§impl Display for TransparentCodecError
§impl Error for TransparentCodecError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Auto Trait Implementations§
§impl Freeze for TransparentCodecError
§impl RefUnwindSafe for TransparentCodecError
§impl Send for TransparentCodecError
§impl Sync for TransparentCodecError
§impl Unpin for TransparentCodecError
§impl UnwindSafe for TransparentCodecError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/rustdoc/latest/zcash_client_backend/encoding/fn.decode_extended_full_viewing_key.html b/rustdoc/latest/zcash_client_backend/encoding/fn.decode_extended_full_viewing_key.html
index 7e1997f1f..9f03ba990 100644
--- a/rustdoc/latest/zcash_client_backend/encoding/fn.decode_extended_full_viewing_key.html
+++ b/rustdoc/latest/zcash_client_backend/encoding/fn.decode_extended_full_viewing_key.html
@@ -1,4 +1,4 @@
-decode_extended_full_viewing_key in zcash_client_backend::encoding - Rust pub fn decode_extended_full_viewing_key(
+decode_extended_full_viewing_key in zcash_client_backend::encoding - Rust Function decode_extended_full_viewing_key
pub fn decode_extended_full_viewing_key(
hrp: &str,
s: &str,
) -> Result<ExtendedFullViewingKey, Bech32DecodeError>
Available on crate feature sapling
only.Expand description
Decodes an ExtendedFullViewingKey
from a Bech32-encoded string, verifying that it matches
diff --git a/rustdoc/latest/zcash_client_backend/encoding/fn.decode_extended_spending_key.html b/rustdoc/latest/zcash_client_backend/encoding/fn.decode_extended_spending_key.html
index 82cc892a9..9406545a9 100644
--- a/rustdoc/latest/zcash_client_backend/encoding/fn.decode_extended_spending_key.html
+++ b/rustdoc/latest/zcash_client_backend/encoding/fn.decode_extended_spending_key.html
@@ -1,4 +1,4 @@
-
decode_extended_spending_key in zcash_client_backend::encoding - Rust pub fn decode_extended_spending_key(
+decode_extended_spending_key in zcash_client_backend::encoding - Rust Function decode_extended_spending_key
pub fn decode_extended_spending_key(
hrp: &str,
s: &str,
) -> Result<ExtendedSpendingKey, Bech32DecodeError>
Available on crate feature sapling
only.Expand description
Decodes an ExtendedSpendingKey
from a Bech32-encoded string.
diff --git a/rustdoc/latest/zcash_client_backend/encoding/fn.decode_extfvk_with_network.html b/rustdoc/latest/zcash_client_backend/encoding/fn.decode_extfvk_with_network.html
index f08468b62..1c1ee3159 100644
--- a/rustdoc/latest/zcash_client_backend/encoding/fn.decode_extfvk_with_network.html
+++ b/rustdoc/latest/zcash_client_backend/encoding/fn.decode_extfvk_with_network.html
@@ -1,4 +1,4 @@
-decode_extfvk_with_network in zcash_client_backend::encoding - Rust pub fn decode_extfvk_with_network(
+decode_extfvk_with_network in zcash_client_backend::encoding - Rust Function decode_extfvk_with_network
pub fn decode_extfvk_with_network(
s: &str,
) -> Result<(NetworkType, ExtendedFullViewingKey), Bech32DecodeError>
Available on crate feature sapling
only.Expand description
Decodes an ExtendedFullViewingKey
and the [NetworkType
] that it is intended for use with
from a Bech32-encoded string.
diff --git a/rustdoc/latest/zcash_client_backend/encoding/fn.decode_payment_address.html b/rustdoc/latest/zcash_client_backend/encoding/fn.decode_payment_address.html
index 6268aa8c3..7fb212659 100644
--- a/rustdoc/latest/zcash_client_backend/encoding/fn.decode_payment_address.html
+++ b/rustdoc/latest/zcash_client_backend/encoding/fn.decode_payment_address.html
@@ -1,4 +1,4 @@
-decode_payment_address in zcash_client_backend::encoding - Rust pub fn decode_payment_address(
+decode_payment_address in zcash_client_backend::encoding - Rust Function decode_payment_address
pub fn decode_payment_address(
hrp: &str,
s: &str,
) -> Result<PaymentAddress, Bech32DecodeError>
Available on crate feature sapling
only.Expand description
Decodes a PaymentAddress
from a Bech32-encoded string.
diff --git a/rustdoc/latest/zcash_client_backend/encoding/fn.decode_transparent_address.html b/rustdoc/latest/zcash_client_backend/encoding/fn.decode_transparent_address.html
index 686d2f775..6fcf664ea 100644
--- a/rustdoc/latest/zcash_client_backend/encoding/fn.decode_transparent_address.html
+++ b/rustdoc/latest/zcash_client_backend/encoding/fn.decode_transparent_address.html
@@ -1,4 +1,4 @@
-decode_transparent_address in zcash_client_backend::encoding - Rust pub fn decode_transparent_address(
+decode_transparent_address in zcash_client_backend::encoding - Rust Function decode_transparent_address
pub fn decode_transparent_address(
pubkey_version: &[u8],
script_version: &[u8],
s: &str,
diff --git a/rustdoc/latest/zcash_client_backend/encoding/fn.encode_extended_full_viewing_key.html b/rustdoc/latest/zcash_client_backend/encoding/fn.encode_extended_full_viewing_key.html
index 5cf6ea13a..dd025704c 100644
--- a/rustdoc/latest/zcash_client_backend/encoding/fn.encode_extended_full_viewing_key.html
+++ b/rustdoc/latest/zcash_client_backend/encoding/fn.encode_extended_full_viewing_key.html
@@ -1,4 +1,4 @@
-encode_extended_full_viewing_key in zcash_client_backend::encoding - Rust pub fn encode_extended_full_viewing_key(
+encode_extended_full_viewing_key in zcash_client_backend::encoding - Rust Function encode_extended_full_viewing_key
pub fn encode_extended_full_viewing_key(
hrp: &str,
extfvk: &ExtendedFullViewingKey,
) -> String
Available on crate feature sapling
only.Expand description
Writes an ExtendedFullViewingKey
as a Bech32-encoded string.
diff --git a/rustdoc/latest/zcash_client_backend/encoding/fn.encode_extended_spending_key.html b/rustdoc/latest/zcash_client_backend/encoding/fn.encode_extended_spending_key.html
index 9b0ac9acc..119e6ea28 100644
--- a/rustdoc/latest/zcash_client_backend/encoding/fn.encode_extended_spending_key.html
+++ b/rustdoc/latest/zcash_client_backend/encoding/fn.encode_extended_spending_key.html
@@ -1,4 +1,4 @@
-encode_extended_spending_key in zcash_client_backend::encoding - Rust pub fn encode_extended_spending_key(
+encode_extended_spending_key in zcash_client_backend::encoding - Rust Function encode_extended_spending_key
pub fn encode_extended_spending_key(
hrp: &str,
extsk: &ExtendedSpendingKey,
) -> String
Available on crate feature sapling
only.Expand description
Writes an ExtendedSpendingKey
as a Bech32-encoded string.
diff --git a/rustdoc/latest/zcash_client_backend/encoding/fn.encode_payment_address.html b/rustdoc/latest/zcash_client_backend/encoding/fn.encode_payment_address.html
index 8a6d33a7e..0b687dae2 100644
--- a/rustdoc/latest/zcash_client_backend/encoding/fn.encode_payment_address.html
+++ b/rustdoc/latest/zcash_client_backend/encoding/fn.encode_payment_address.html
@@ -1,4 +1,4 @@
-encode_payment_address in zcash_client_backend::encoding - Rust pub fn encode_payment_address(hrp: &str, addr: &PaymentAddress) -> String
Available on crate feature sapling
only.Expand description
Writes a PaymentAddress
as a Bech32-encoded string.
+encode_payment_address in zcash_client_backend::encoding - Rust Function encode_payment_address
pub fn encode_payment_address(hrp: &str, addr: &PaymentAddress) -> String
Available on crate feature sapling
only.Expand description
Writes a PaymentAddress
as a Bech32-encoded string.
§Examples
use group::Group;
use sapling::{Diversifier, PaymentAddress};
diff --git a/rustdoc/latest/zcash_client_backend/encoding/fn.encode_payment_address_p.html b/rustdoc/latest/zcash_client_backend/encoding/fn.encode_payment_address_p.html
index 523a89b3b..ad25618d9 100644
--- a/rustdoc/latest/zcash_client_backend/encoding/fn.encode_payment_address_p.html
+++ b/rustdoc/latest/zcash_client_backend/encoding/fn.encode_payment_address_p.html
@@ -1,4 +1,4 @@
-encode_payment_address_p in zcash_client_backend::encoding - Rust pub fn encode_payment_address_p<P>(params: &P, addr: &PaymentAddress) -> Stringwhere
+encode_payment_address_p in zcash_client_backend::encoding - Rust Function encode_payment_address_p
pub fn encode_payment_address_p<P>(params: &P, addr: &PaymentAddress) -> Stringwhere
P: Parameters,
Available on crate feature sapling
only.Expand description
Writes a PaymentAddress
as a Bech32-encoded string
using the human-readable prefix values defined in the specified
network parameters.
diff --git a/rustdoc/latest/zcash_client_backend/encoding/fn.encode_transparent_address.html b/rustdoc/latest/zcash_client_backend/encoding/fn.encode_transparent_address.html
index b77483549..fde244182 100644
--- a/rustdoc/latest/zcash_client_backend/encoding/fn.encode_transparent_address.html
+++ b/rustdoc/latest/zcash_client_backend/encoding/fn.encode_transparent_address.html
@@ -1,4 +1,4 @@
-encode_transparent_address in zcash_client_backend::encoding - Rust pub fn encode_transparent_address(
+encode_transparent_address in zcash_client_backend::encoding - Rust Function encode_transparent_address
pub fn encode_transparent_address(
pubkey_version: &[u8],
script_version: &[u8],
addr: &TransparentAddress,
diff --git a/rustdoc/latest/zcash_client_backend/encoding/fn.encode_transparent_address_p.html b/rustdoc/latest/zcash_client_backend/encoding/fn.encode_transparent_address_p.html
index f1357e073..01219e937 100644
--- a/rustdoc/latest/zcash_client_backend/encoding/fn.encode_transparent_address_p.html
+++ b/rustdoc/latest/zcash_client_backend/encoding/fn.encode_transparent_address_p.html
@@ -1,4 +1,4 @@
-encode_transparent_address_p in zcash_client_backend::encoding - Rust pub fn encode_transparent_address_p<P>(
+encode_transparent_address_p in zcash_client_backend::encoding - Rust Function encode_transparent_address_p
pub fn encode_transparent_address_p<P>(
params: &P,
addr: &TransparentAddress,
) -> Stringwhere
diff --git a/rustdoc/latest/zcash_client_backend/encoding/index.html b/rustdoc/latest/zcash_client_backend/encoding/index.html
index af51e48c4..28ab56b10 100644
--- a/rustdoc/latest/zcash_client_backend/encoding/index.html
+++ b/rustdoc/latest/zcash_client_backend/encoding/index.html
@@ -1,4 +1,4 @@
-zcash_client_backend::encoding - Rust Expand description
Encoding and decoding functions for Zcash key and address structs.
+zcash_client_backend::encoding - Rust Module encoding
Expand description
Encoding and decoding functions for Zcash key and address structs.
Human-Readable Prefixes (HRPs) for Bech32 encodings are located in the
[zcash_primitives::constants] module.
Enums§
- Bech32
DecodeError sapling
Traits§
- A trait for encoding and decoding Zcash addresses.
Functions§
- Decodes an
ExtendedFullViewingKey
from a Bech32-encoded string, verifying that it matches
diff --git a/rustdoc/latest/zcash_client_backend/encoding/trait.AddressCodec.html b/rustdoc/latest/zcash_client_backend/encoding/trait.AddressCodec.html
index e34d00c73..c49068e84 100644
--- a/rustdoc/latest/zcash_client_backend/encoding/trait.AddressCodec.html
+++ b/rustdoc/latest/zcash_client_backend/encoding/trait.AddressCodec.html
@@ -1,28 +1,28 @@
-AddressCodec in zcash_client_backend::encoding - Rust pub trait AddressCodec<P>: Sized {
+AddressCodec in zcash_client_backend::encoding - Rust Trait AddressCodec
pub trait AddressCodec<P>: Sized {
type Error;
// Required methods
fn encode(&self, params: &P) -> String;
fn decode(params: &P, address: &str) -> Result<Self, Self::Error>;
}
Expand description
A trait for encoding and decoding Zcash addresses.
-Required Associated Types§
Required Methods§
Required Associated Types§
type Error
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
§impl<P> AddressCodec<P> for PaymentAddresswhere
+ P: Parameters,
Available on crate feature sapling
only.
Source§impl<P> AddressCodec<P> for TransparentAddresswhere
- P: Parameters,
§impl<P> AddressCodec<P> for TransparentAddresswhere
+ P: Parameters,
Implementors§
Source§impl<P> AddressCodec<P> for UnifiedAddresswhere
- P: Parameters,
\ No newline at end of file
+) -> Result<TransparentAddress, TransparentCodecError>
Implementors§
§impl<P> AddressCodec<P> for UnifiedAddresswhere
+ P: Parameters,
\ No newline at end of file
diff --git a/rustdoc/latest/zcash_client_backend/keys/enum.AddressGenerationError.html b/rustdoc/latest/zcash_client_backend/keys/enum.AddressGenerationError.html
index 7090a86da..2b600f800 100644
--- a/rustdoc/latest/zcash_client_backend/keys/enum.AddressGenerationError.html
+++ b/rustdoc/latest/zcash_client_backend/keys/enum.AddressGenerationError.html
@@ -1,4 +1,4 @@
-AddressGenerationError in zcash_client_backend::keys - Rust pub enum AddressGenerationError {
+AddressGenerationError in zcash_client_backend::keys - Rust Enum AddressGenerationError
pub enum AddressGenerationError {
InvalidTransparentChildIndex(DiversifierIndex),
InvalidSaplingDiversifierIndex(DiversifierIndex),
DiversifierSpaceExhausted,
@@ -16,7 +16,7 @@
address lacks an item of the requested type.
§ShieldedReceiverRequired
A Unified address cannot be generated without at least one shielded receiver being
included.
-
Trait Implementations§
Source§impl Clone for AddressGenerationError
Source§fn clone(&self) -> AddressGenerationError
Returns a copy of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moreSource§impl Debug for AddressGenerationError
Source§impl Display for AddressGenerationError
Source§impl Error for AddressGenerationError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Auto Trait Implementations§
§impl Freeze for AddressGenerationError
§impl RefUnwindSafe for AddressGenerationError
§impl Send for AddressGenerationError
§impl Sync for AddressGenerationError
§impl Unpin for AddressGenerationError
§impl UnwindSafe for AddressGenerationError
Blanket Implementations§
Trait Implementations§
§impl Clone for AddressGenerationError
§fn clone(&self) -> AddressGenerationError
Returns a copy of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more§impl Debug for AddressGenerationError
§impl Display for AddressGenerationError
§impl Error for AddressGenerationError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Auto Trait Implementations§
§impl Freeze for AddressGenerationError
§impl RefUnwindSafe for AddressGenerationError
§impl Send for AddressGenerationError
§impl Sync for AddressGenerationError
§impl Unpin for AddressGenerationError
§impl UnwindSafe for AddressGenerationError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moreSource§impl<T> CloneToUninit for Twhere
diff --git a/rustdoc/latest/zcash_client_backend/keys/enum.DecodingError.html b/rustdoc/latest/zcash_client_backend/keys/enum.DecodingError.html
index a2a2a62df..e9e77bb08 100644
--- a/rustdoc/latest/zcash_client_backend/keys/enum.DecodingError.html
+++ b/rustdoc/latest/zcash_client_backend/keys/enum.DecodingError.html
@@ -1,4 +1,4 @@
-DecodingError in zcash_client_backend::keys - Rust pub enum DecodingError {
+DecodingError in zcash_client_backend::keys - Rust Enum DecodingError
pub enum DecodingError {
ReadError(&'static str),
EraInvalid,
EraMismatch(Era),
@@ -9,8 +9,8 @@
KeyDataInvalid(Typecode),
}
Expand description
A type for errors that can occur when decoding keys from their serialized representations.
Variants§
§ReadError(&'static str)
Available on crate feature unstable
only.§EraInvalid
Available on crate feature unstable
only.§EraMismatch(Era)
Available on crate feature unstable
only.§TypecodeInvalid
Available on crate feature unstable
only.§LengthInvalid
Available on crate feature unstable
only.§LengthMismatch(Typecode, u32)
Available on crate feature unstable
only.§InsufficientData(Typecode)
Available on crate feature unstable
only.§KeyDataInvalid(Typecode)
The key data could not be decoded from its string representation to a valid key.
-Trait Implementations§
Source§impl Debug for DecodingError
Source§impl Display for DecodingError
Source§impl Error for DecodingError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl PartialEq for DecodingError
Source§impl Eq for DecodingError
Source§impl StructuralPartialEq for DecodingError
Auto Trait Implementations§
§impl Freeze for DecodingError
§impl RefUnwindSafe for DecodingError
§impl Send for DecodingError
§impl Sync for DecodingError
§impl Unpin for DecodingError
§impl UnwindSafe for DecodingError
Blanket Implementations§
Trait Implementations§
§impl Debug for DecodingError
§impl Display for DecodingError
§impl Error for DecodingError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()§impl PartialEq for DecodingError
§impl Eq for DecodingError
§impl StructuralPartialEq for DecodingError
Auto Trait Implementations§
§impl Freeze for DecodingError
§impl RefUnwindSafe for DecodingError
§impl Send for DecodingError
§impl Sync for DecodingError
§impl Unpin for DecodingError
§impl UnwindSafe for DecodingError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/rustdoc/latest/zcash_client_backend/keys/enum.DerivationError.html b/rustdoc/latest/zcash_client_backend/keys/enum.DerivationError.html
index 981b53d27..78ea5d625 100644
--- a/rustdoc/latest/zcash_client_backend/keys/enum.DerivationError.html
+++ b/rustdoc/latest/zcash_client_backend/keys/enum.DerivationError.html
@@ -1,6 +1,6 @@
-DerivationError in zcash_client_backend::keys - Rust
impl<T> CloneToUninit for Twhere
diff --git a/rustdoc/latest/zcash_client_backend/address/enum.Receiver.html b/rustdoc/latest/zcash_client_backend/address/enum.Receiver.html
index fcbba54a0..b42b9f29d 100644
--- a/rustdoc/latest/zcash_client_backend/address/enum.Receiver.html
+++ b/rustdoc/latest/zcash_client_backend/address/enum.Receiver.html
@@ -1,15 +1,15 @@
-Receiver in zcash_client_backend::address - Rust pub enum Receiver {
+Receiver in zcash_client_backend::address - Rust Enum Receiver
pub enum Receiver {
Sapling(PaymentAddress),
Transparent(TransparentAddress),
}
Expand description
An enumeration of protocol-level receiver types.
While these correspond to unified address receiver types, this is a distinct type because it is
used to represent the protocol-level recipient of a transfer, instead of a part of an encoded
address.
-Variants§
Implementations§
Source§impl Receiver
Sourcepub fn to_zcash_address(&self, net: NetworkType) -> ZcashAddress
Converts this receiver to a [ZcashAddress
] for the given network.
+Variants§
Implementations§
§impl Receiver
pub fn to_zcash_address(&self, net: NetworkType) -> ZcashAddress
Converts this receiver to a [ZcashAddress
] for the given network.
This conversion function selects the least-capable address format possible; this means that
Orchard receivers will be rendered as Unified addresses, Sapling receivers will be rendered
as bare Sapling addresses, and Transparent receivers will be rendered as taddrs.
-Sourcepub fn corresponds(&self, addr: &ZcashAddress) -> bool
Returns whether or not this receiver corresponds to addr
, or is contained
+
pub fn corresponds(&self, addr: &ZcashAddress) -> bool
Returns whether or not this receiver corresponds to addr
, or is contained
in addr
when the latter is a Unified Address.
Auto Trait Implementations§
§impl Freeze for Receiver
§impl RefUnwindSafe for Receiver
§impl Send for Receiver
§impl Sync for Receiver
§impl Unpin for Receiver
§impl UnwindSafe for Receiver
Blanket Implementations§
Source§impl<T> Borrow<T> for Twhere
diff --git a/rustdoc/latest/zcash_client_backend/address/index.html b/rustdoc/latest/zcash_client_backend/address/index.html
index e7a16670c..834340fa5 100644
--- a/rustdoc/latest/zcash_client_backend/address/index.html
+++ b/rustdoc/latest/zcash_client_backend/address/index.html
@@ -1,2 +1,2 @@
-zcash_client_backend::address - Rust Expand description
Structs for handling supported address types.
+zcash_client_backend::address - Rust
\ No newline at end of file
diff --git a/rustdoc/latest/zcash_client_backend/address/struct.UnifiedAddress.html b/rustdoc/latest/zcash_client_backend/address/struct.UnifiedAddress.html
index 3fd880199..2e0a63514 100644
--- a/rustdoc/latest/zcash_client_backend/address/struct.UnifiedAddress.html
+++ b/rustdoc/latest/zcash_client_backend/address/struct.UnifiedAddress.html
@@ -1,25 +1,25 @@
-UnifiedAddress in zcash_client_backend::address - Rust pub struct UnifiedAddress { /* private fields */ }
Expand description
A Unified Address.
-Implementations§
Source§impl UnifiedAddress
Sourcepub fn from_receivers(
+UnifiedAddress in zcash_client_backend::address - Rust Struct UnifiedAddress
pub struct UnifiedAddress { /* private fields */ }
Expand description
A Unified Address.
+Implementations§
§impl UnifiedAddress
pub fn from_receivers(
sapling: Option<PaymentAddress>,
transparent: Option<TransparentAddress>,
) -> Option<UnifiedAddress>
Constructs a Unified Address from a given set of receivers.
Returns None
if the receivers would produce an invalid Unified Address (namely,
if no shielded receiver is provided).
-Sourcepub fn has_orchard(&self) -> bool
Returns whether this address has an Orchard receiver.
+pub fn has_orchard(&self) -> bool
Returns whether this address has an Orchard receiver.
This method is available irrespective of whether the orchard
feature flag is enabled.
-Sourcepub fn has_sapling(&self) -> bool
Returns whether this address has a Sapling receiver.
-Sourcepub fn sapling(&self) -> Option<&PaymentAddress>
Available on crate feature sapling
only.
Returns the Sapling receiver within this Unified Address, if any.
-Sourcepub fn has_transparent(&self) -> bool
Returns whether this address has a Transparent receiver.
-Sourcepub fn transparent(&self) -> Option<&TransparentAddress>
Returns the transparent receiver within this Unified Address, if any.
-Sourcepub fn unknown(&self) -> &[(u32, Vec<u8>)]
Returns the set of unknown receivers of the unified address.
-pub fn has_sapling(&self) -> bool
Returns whether this address has a Sapling receiver.
+pub fn sapling(&self) -> Option<&PaymentAddress>
Available on crate feature sapling
only.
Returns the Sapling receiver within this Unified Address, if any.
+pub fn has_transparent(&self) -> bool
Returns whether this address has a Transparent receiver.
+pub fn transparent(&self) -> Option<&TransparentAddress>
Returns the transparent receiver within this Unified Address, if any.
+pub fn unknown(&self) -> &[(u32, Vec<u8>)]
Returns the set of unknown receivers of the unified address.
+pub fn encode<P>(&self, params: &P) -> Stringwhere
P: Parameters,
Returns the string encoding of this UnifiedAddress
for the given network.
-Sourcepub fn receiver_types(&self) -> Vec<Typecode>
Returns the set of receiver typecodes.
-Trait Implementations§
Source§impl<P> AddressCodec<P> for UnifiedAddresswhere
- P: Parameters,
Source§impl Clone for UnifiedAddress
Source§fn clone(&self) -> UnifiedAddress
Returns a copy of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moreSource§impl Debug for UnifiedAddress
Source§impl From<UnifiedAddress> for Address
Source§fn from(addr: UnifiedAddress) -> Address
Converts to this type from the input type.Source§impl PartialEq for UnifiedAddress
Source§impl TryFrom<Address> for UnifiedAddress
pub fn receiver_types(&self) -> Vec<Typecode>
Returns the set of receiver typecodes.
+Trait Implementations§
§impl<P> AddressCodec<P> for UnifiedAddresswhere
+ P: Parameters,
§impl Clone for UnifiedAddress
§fn clone(&self) -> UnifiedAddress
Returns a copy of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more§impl Debug for UnifiedAddress
§impl From<UnifiedAddress> for Address
§fn from(addr: UnifiedAddress) -> Address
Converts to this type from the input type.§impl PartialEq for UnifiedAddress
§impl TryFrom<Address> for UnifiedAddress
§fn try_from(
ua: Address,
-) -> Result<UnifiedAddress, <UnifiedAddress as TryFrom<Address>>::Error>
Performs the conversion.Source§impl Eq for UnifiedAddress
Source§impl StructuralPartialEq for UnifiedAddress
Auto Trait Implementations§
§impl Freeze for UnifiedAddress
§impl RefUnwindSafe for UnifiedAddress
§impl Send for UnifiedAddress
§impl Sync for UnifiedAddress
§impl Unpin for UnifiedAddress
§impl UnwindSafe for UnifiedAddress
Blanket Implementations§
Source§impl<T> Any for Twhere
+) -> Result<UnifiedAddress, <UnifiedAddress as TryFrom<Address>>::Error>Performs the conversion.
§impl Eq for UnifiedAddress
§impl StructuralPartialEq for UnifiedAddress
Auto Trait Implementations§
§impl Freeze for UnifiedAddress
§impl RefUnwindSafe for UnifiedAddress
§impl Send for UnifiedAddress
§impl Sync for UnifiedAddress
§impl Unpin for UnifiedAddress
§impl UnwindSafe for UnifiedAddress
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moreSource§impl<T> CloneToUninit for Twhere
diff --git a/rustdoc/latest/zcash_client_backend/address/testing/fn.arb_addr.html b/rustdoc/latest/zcash_client_backend/address/testing/fn.arb_addr.html
index dae0e2a2d..987f22732 100644
--- a/rustdoc/latest/zcash_client_backend/address/testing/fn.arb_addr.html
+++ b/rustdoc/latest/zcash_client_backend/address/testing/fn.arb_addr.html
@@ -1,3 +1,3 @@
-arb_addr in zcash_client_backend::address::testing - Rust pub fn arb_addr(
+arb_addr in zcash_client_backend::address::testing - Rust Function arb_addr
pub fn arb_addr(
request: UnifiedAddressRequest,
) -> impl Strategy<Value = Address>
Available on (crate features orchard
or sapling
or transparent-inputs
) and crate feature test-dependencies
and crate feature sapling
only.
\ No newline at end of file
diff --git a/rustdoc/latest/zcash_client_backend/address/testing/fn.arb_unified_addr.html b/rustdoc/latest/zcash_client_backend/address/testing/fn.arb_unified_addr.html
index 5fd797ed4..dfec70de0 100644
--- a/rustdoc/latest/zcash_client_backend/address/testing/fn.arb_unified_addr.html
+++ b/rustdoc/latest/zcash_client_backend/address/testing/fn.arb_unified_addr.html
@@ -1,4 +1,4 @@
-arb_unified_addr in zcash_client_backend::address::testing - Rust pub fn arb_unified_addr(
+arb_unified_addr in zcash_client_backend::address::testing - Rust Function arb_unified_addr
pub fn arb_unified_addr(
params: Network,
request: UnifiedAddressRequest,
) -> impl Strategy<Value = UnifiedAddress>
Available on (crate features orchard
or sapling
or transparent-inputs
) and crate feature test-dependencies
only.
\ No newline at end of file
diff --git a/rustdoc/latest/zcash_client_backend/address/testing/index.html b/rustdoc/latest/zcash_client_backend/address/testing/index.html
index e04ddc071..e31de0773 100644
--- a/rustdoc/latest/zcash_client_backend/address/testing/index.html
+++ b/rustdoc/latest/zcash_client_backend/address/testing/index.html
@@ -1 +1 @@
-zcash_client_backend::address::testing - Rust
\ No newline at end of file
+zcash_client_backend::address::testing - Rust
\ No newline at end of file
diff --git a/rustdoc/latest/zcash_client_backend/encoding/enum.Bech32DecodeError.html b/rustdoc/latest/zcash_client_backend/encoding/enum.Bech32DecodeError.html
index dfcb3bbb1..456e31611 100644
--- a/rustdoc/latest/zcash_client_backend/encoding/enum.Bech32DecodeError.html
+++ b/rustdoc/latest/zcash_client_backend/encoding/enum.Bech32DecodeError.html
@@ -1,4 +1,4 @@
-Bech32DecodeError in zcash_client_backend::encoding - Rust pub enum Bech32DecodeError {
+Bech32DecodeError in zcash_client_backend::encoding - Rust Enum Bech32DecodeError
pub enum Bech32DecodeError {
Bech32Error(Error),
IncorrectVariant(Variant),
ReadError,
@@ -6,8 +6,8 @@
expected: String,
actual: String,
},
-}
Available on crate feature sapling
only.Variants§
Trait Implementations§
Source§impl Clone for Bech32DecodeError
Source§fn clone(&self) -> Bech32DecodeError
Returns a copy of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moreSource§impl Debug for Bech32DecodeError
Source§impl Display for Bech32DecodeError
Source§impl Error for Bech32DecodeError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<Error> for Bech32DecodeError
Source§fn from(err: Error) -> Bech32DecodeError
Converts to this type from the input type.Source§impl PartialEq for Bech32DecodeError
Source§impl Eq for Bech32DecodeError
Source§impl StructuralPartialEq for Bech32DecodeError
Auto Trait Implementations§
§impl Freeze for Bech32DecodeError
§impl RefUnwindSafe for Bech32DecodeError
§impl Send for Bech32DecodeError
§impl Sync for Bech32DecodeError
§impl Unpin for Bech32DecodeError
§impl UnwindSafe for Bech32DecodeError
Blanket Implementations§
Source§impl<T> Any for Twhere
+}Available on crate feature sapling
only.Variants§
Trait Implementations§
§impl Clone for Bech32DecodeError
§fn clone(&self) -> Bech32DecodeError
Returns a copy of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more§impl Debug for Bech32DecodeError
§impl Display for Bech32DecodeError
§impl Error for Bech32DecodeError
§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()§impl From<Error> for Bech32DecodeError
§fn from(err: Error) -> Bech32DecodeError
Converts to this type from the input type.§impl PartialEq for Bech32DecodeError
§impl Eq for Bech32DecodeError
§impl StructuralPartialEq for Bech32DecodeError
Auto Trait Implementations§
§impl Freeze for Bech32DecodeError
§impl RefUnwindSafe for Bech32DecodeError
§impl Send for Bech32DecodeError
§impl Sync for Bech32DecodeError
§impl Unpin for Bech32DecodeError
§impl UnwindSafe for Bech32DecodeError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moreSource§impl<T> CloneToUninit for Twhere
diff --git a/rustdoc/latest/zcash_client_backend/encoding/enum.TransparentCodecError.html b/rustdoc/latest/zcash_client_backend/encoding/enum.TransparentCodecError.html
index 130027814..0197804b8 100644
--- a/rustdoc/latest/zcash_client_backend/encoding/enum.TransparentCodecError.html
+++ b/rustdoc/latest/zcash_client_backend/encoding/enum.TransparentCodecError.html
@@ -1,7 +1,7 @@
-TransparentCodecError in zcash_client_backend::encoding - Rust pub enum TransparentCodecError {
+TransparentCodecError in zcash_client_backend::encoding - Rust Enum TransparentCodecError
pub enum TransparentCodecError {
UnsupportedAddressType(String),
Base58(Error),
-}
Variants§
Trait Implementations§
Source§impl Debug for TransparentCodecError
Source§impl Display for TransparentCodecError
Source§impl Error for TransparentCodecError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Auto Trait Implementations§
§impl Freeze for TransparentCodecError
§impl RefUnwindSafe for TransparentCodecError
§impl Send for TransparentCodecError
§impl Sync for TransparentCodecError
§impl Unpin for TransparentCodecError
§impl UnwindSafe for TransparentCodecError
Blanket Implementations§
Source§impl<T> Any for Twhere
+}Variants§
Trait Implementations§
§impl Debug for TransparentCodecError
§impl Display for TransparentCodecError
§impl Error for TransparentCodecError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Auto Trait Implementations§
§impl Freeze for TransparentCodecError
§impl RefUnwindSafe for TransparentCodecError
§impl Send for TransparentCodecError
§impl Sync for TransparentCodecError
§impl Unpin for TransparentCodecError
§impl UnwindSafe for TransparentCodecError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/rustdoc/latest/zcash_client_backend/encoding/fn.decode_extended_full_viewing_key.html b/rustdoc/latest/zcash_client_backend/encoding/fn.decode_extended_full_viewing_key.html
index 7e1997f1f..9f03ba990 100644
--- a/rustdoc/latest/zcash_client_backend/encoding/fn.decode_extended_full_viewing_key.html
+++ b/rustdoc/latest/zcash_client_backend/encoding/fn.decode_extended_full_viewing_key.html
@@ -1,4 +1,4 @@
-decode_extended_full_viewing_key in zcash_client_backend::encoding - Rust pub fn decode_extended_full_viewing_key(
+decode_extended_full_viewing_key in zcash_client_backend::encoding - Rust Function decode_extended_full_viewing_key
pub fn decode_extended_full_viewing_key(
hrp: &str,
s: &str,
) -> Result<ExtendedFullViewingKey, Bech32DecodeError>
Available on crate feature sapling
only.Expand description
Decodes an ExtendedFullViewingKey
from a Bech32-encoded string, verifying that it matches
diff --git a/rustdoc/latest/zcash_client_backend/encoding/fn.decode_extended_spending_key.html b/rustdoc/latest/zcash_client_backend/encoding/fn.decode_extended_spending_key.html
index 82cc892a9..9406545a9 100644
--- a/rustdoc/latest/zcash_client_backend/encoding/fn.decode_extended_spending_key.html
+++ b/rustdoc/latest/zcash_client_backend/encoding/fn.decode_extended_spending_key.html
@@ -1,4 +1,4 @@
-
decode_extended_spending_key in zcash_client_backend::encoding - Rust pub fn decode_extended_spending_key(
+decode_extended_spending_key in zcash_client_backend::encoding - Rust Function decode_extended_spending_key
pub fn decode_extended_spending_key(
hrp: &str,
s: &str,
) -> Result<ExtendedSpendingKey, Bech32DecodeError>
Available on crate feature sapling
only.Expand description
Decodes an ExtendedSpendingKey
from a Bech32-encoded string.
diff --git a/rustdoc/latest/zcash_client_backend/encoding/fn.decode_extfvk_with_network.html b/rustdoc/latest/zcash_client_backend/encoding/fn.decode_extfvk_with_network.html
index f08468b62..1c1ee3159 100644
--- a/rustdoc/latest/zcash_client_backend/encoding/fn.decode_extfvk_with_network.html
+++ b/rustdoc/latest/zcash_client_backend/encoding/fn.decode_extfvk_with_network.html
@@ -1,4 +1,4 @@
-decode_extfvk_with_network in zcash_client_backend::encoding - Rust pub fn decode_extfvk_with_network(
+decode_extfvk_with_network in zcash_client_backend::encoding - Rust Function decode_extfvk_with_network
pub fn decode_extfvk_with_network(
s: &str,
) -> Result<(NetworkType, ExtendedFullViewingKey), Bech32DecodeError>
Available on crate feature sapling
only.Expand description
Decodes an ExtendedFullViewingKey
and the [NetworkType
] that it is intended for use with
from a Bech32-encoded string.
diff --git a/rustdoc/latest/zcash_client_backend/encoding/fn.decode_payment_address.html b/rustdoc/latest/zcash_client_backend/encoding/fn.decode_payment_address.html
index 6268aa8c3..7fb212659 100644
--- a/rustdoc/latest/zcash_client_backend/encoding/fn.decode_payment_address.html
+++ b/rustdoc/latest/zcash_client_backend/encoding/fn.decode_payment_address.html
@@ -1,4 +1,4 @@
-decode_payment_address in zcash_client_backend::encoding - Rust pub fn decode_payment_address(
+decode_payment_address in zcash_client_backend::encoding - Rust Function decode_payment_address
pub fn decode_payment_address(
hrp: &str,
s: &str,
) -> Result<PaymentAddress, Bech32DecodeError>
Available on crate feature sapling
only.Expand description
Decodes a PaymentAddress
from a Bech32-encoded string.
diff --git a/rustdoc/latest/zcash_client_backend/encoding/fn.decode_transparent_address.html b/rustdoc/latest/zcash_client_backend/encoding/fn.decode_transparent_address.html
index 686d2f775..6fcf664ea 100644
--- a/rustdoc/latest/zcash_client_backend/encoding/fn.decode_transparent_address.html
+++ b/rustdoc/latest/zcash_client_backend/encoding/fn.decode_transparent_address.html
@@ -1,4 +1,4 @@
-decode_transparent_address in zcash_client_backend::encoding - Rust pub fn decode_transparent_address(
+decode_transparent_address in zcash_client_backend::encoding - Rust Function decode_transparent_address
pub fn decode_transparent_address(
pubkey_version: &[u8],
script_version: &[u8],
s: &str,
diff --git a/rustdoc/latest/zcash_client_backend/encoding/fn.encode_extended_full_viewing_key.html b/rustdoc/latest/zcash_client_backend/encoding/fn.encode_extended_full_viewing_key.html
index 5cf6ea13a..dd025704c 100644
--- a/rustdoc/latest/zcash_client_backend/encoding/fn.encode_extended_full_viewing_key.html
+++ b/rustdoc/latest/zcash_client_backend/encoding/fn.encode_extended_full_viewing_key.html
@@ -1,4 +1,4 @@
-encode_extended_full_viewing_key in zcash_client_backend::encoding - Rust pub fn encode_extended_full_viewing_key(
+encode_extended_full_viewing_key in zcash_client_backend::encoding - Rust Function encode_extended_full_viewing_key
pub fn encode_extended_full_viewing_key(
hrp: &str,
extfvk: &ExtendedFullViewingKey,
) -> String
Available on crate feature sapling
only.Expand description
Writes an ExtendedFullViewingKey
as a Bech32-encoded string.
diff --git a/rustdoc/latest/zcash_client_backend/encoding/fn.encode_extended_spending_key.html b/rustdoc/latest/zcash_client_backend/encoding/fn.encode_extended_spending_key.html
index 9b0ac9acc..119e6ea28 100644
--- a/rustdoc/latest/zcash_client_backend/encoding/fn.encode_extended_spending_key.html
+++ b/rustdoc/latest/zcash_client_backend/encoding/fn.encode_extended_spending_key.html
@@ -1,4 +1,4 @@
-encode_extended_spending_key in zcash_client_backend::encoding - Rust pub fn encode_extended_spending_key(
+encode_extended_spending_key in zcash_client_backend::encoding - Rust Function encode_extended_spending_key
pub fn encode_extended_spending_key(
hrp: &str,
extsk: &ExtendedSpendingKey,
) -> String
Available on crate feature sapling
only.Expand description
Writes an ExtendedSpendingKey
as a Bech32-encoded string.
diff --git a/rustdoc/latest/zcash_client_backend/encoding/fn.encode_payment_address.html b/rustdoc/latest/zcash_client_backend/encoding/fn.encode_payment_address.html
index 8a6d33a7e..0b687dae2 100644
--- a/rustdoc/latest/zcash_client_backend/encoding/fn.encode_payment_address.html
+++ b/rustdoc/latest/zcash_client_backend/encoding/fn.encode_payment_address.html
@@ -1,4 +1,4 @@
-encode_payment_address in zcash_client_backend::encoding - Rust pub fn encode_payment_address(hrp: &str, addr: &PaymentAddress) -> String
Available on crate feature sapling
only.Expand description
Writes a PaymentAddress
as a Bech32-encoded string.
+encode_payment_address in zcash_client_backend::encoding - Rust Function encode_payment_address
pub fn encode_payment_address(hrp: &str, addr: &PaymentAddress) -> String
Available on crate feature sapling
only.Expand description
Writes a PaymentAddress
as a Bech32-encoded string.
§Examples
use group::Group;
use sapling::{Diversifier, PaymentAddress};
diff --git a/rustdoc/latest/zcash_client_backend/encoding/fn.encode_payment_address_p.html b/rustdoc/latest/zcash_client_backend/encoding/fn.encode_payment_address_p.html
index 523a89b3b..ad25618d9 100644
--- a/rustdoc/latest/zcash_client_backend/encoding/fn.encode_payment_address_p.html
+++ b/rustdoc/latest/zcash_client_backend/encoding/fn.encode_payment_address_p.html
@@ -1,4 +1,4 @@
-encode_payment_address_p in zcash_client_backend::encoding - Rust pub fn encode_payment_address_p<P>(params: &P, addr: &PaymentAddress) -> Stringwhere
+encode_payment_address_p in zcash_client_backend::encoding - Rust Function encode_payment_address_p
pub fn encode_payment_address_p<P>(params: &P, addr: &PaymentAddress) -> Stringwhere
P: Parameters,
Available on crate feature sapling
only.Expand description
Writes a PaymentAddress
as a Bech32-encoded string
using the human-readable prefix values defined in the specified
network parameters.
diff --git a/rustdoc/latest/zcash_client_backend/encoding/fn.encode_transparent_address.html b/rustdoc/latest/zcash_client_backend/encoding/fn.encode_transparent_address.html
index b77483549..fde244182 100644
--- a/rustdoc/latest/zcash_client_backend/encoding/fn.encode_transparent_address.html
+++ b/rustdoc/latest/zcash_client_backend/encoding/fn.encode_transparent_address.html
@@ -1,4 +1,4 @@
-encode_transparent_address in zcash_client_backend::encoding - Rust pub fn encode_transparent_address(
+encode_transparent_address in zcash_client_backend::encoding - Rust Function encode_transparent_address
pub fn encode_transparent_address(
pubkey_version: &[u8],
script_version: &[u8],
addr: &TransparentAddress,
diff --git a/rustdoc/latest/zcash_client_backend/encoding/fn.encode_transparent_address_p.html b/rustdoc/latest/zcash_client_backend/encoding/fn.encode_transparent_address_p.html
index f1357e073..01219e937 100644
--- a/rustdoc/latest/zcash_client_backend/encoding/fn.encode_transparent_address_p.html
+++ b/rustdoc/latest/zcash_client_backend/encoding/fn.encode_transparent_address_p.html
@@ -1,4 +1,4 @@
-encode_transparent_address_p in zcash_client_backend::encoding - Rust pub fn encode_transparent_address_p<P>(
+encode_transparent_address_p in zcash_client_backend::encoding - Rust Function encode_transparent_address_p
pub fn encode_transparent_address_p<P>(
params: &P,
addr: &TransparentAddress,
) -> Stringwhere
diff --git a/rustdoc/latest/zcash_client_backend/encoding/index.html b/rustdoc/latest/zcash_client_backend/encoding/index.html
index af51e48c4..28ab56b10 100644
--- a/rustdoc/latest/zcash_client_backend/encoding/index.html
+++ b/rustdoc/latest/zcash_client_backend/encoding/index.html
@@ -1,4 +1,4 @@
-zcash_client_backend::encoding - Rust Expand description
Encoding and decoding functions for Zcash key and address structs.
+zcash_client_backend::encoding - Rust Module encoding
Expand description
Encoding and decoding functions for Zcash key and address structs.
Human-Readable Prefixes (HRPs) for Bech32 encodings are located in the
[zcash_primitives::constants] module.
Enums§
- Bech32
DecodeError sapling
Traits§
- A trait for encoding and decoding Zcash addresses.
Functions§
- Decodes an
ExtendedFullViewingKey
from a Bech32-encoded string, verifying that it matches
diff --git a/rustdoc/latest/zcash_client_backend/encoding/trait.AddressCodec.html b/rustdoc/latest/zcash_client_backend/encoding/trait.AddressCodec.html
index e34d00c73..c49068e84 100644
--- a/rustdoc/latest/zcash_client_backend/encoding/trait.AddressCodec.html
+++ b/rustdoc/latest/zcash_client_backend/encoding/trait.AddressCodec.html
@@ -1,28 +1,28 @@
-AddressCodec in zcash_client_backend::encoding - Rust pub trait AddressCodec<P>: Sized {
+AddressCodec in zcash_client_backend::encoding - Rust Trait AddressCodec
pub trait AddressCodec<P>: Sized {
type Error;
// Required methods
fn encode(&self, params: &P) -> String;
fn decode(params: &P, address: &str) -> Result<Self, Self::Error>;
}
Expand description
A trait for encoding and decoding Zcash addresses.
-Required Associated Types§
Required Methods§
Required Associated Types§
type Error
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
§impl<P> AddressCodec<P> for PaymentAddresswhere
+ P: Parameters,
Available on crate feature sapling
only.
Source§impl<P> AddressCodec<P> for TransparentAddresswhere
- P: Parameters,
§impl<P> AddressCodec<P> for TransparentAddresswhere
+ P: Parameters,
Implementors§
Source§impl<P> AddressCodec<P> for UnifiedAddresswhere
- P: Parameters,
\ No newline at end of file
+) -> Result<TransparentAddress, TransparentCodecError>
Implementors§
§impl<P> AddressCodec<P> for UnifiedAddresswhere
+ P: Parameters,
\ No newline at end of file
diff --git a/rustdoc/latest/zcash_client_backend/keys/enum.AddressGenerationError.html b/rustdoc/latest/zcash_client_backend/keys/enum.AddressGenerationError.html
index 7090a86da..2b600f800 100644
--- a/rustdoc/latest/zcash_client_backend/keys/enum.AddressGenerationError.html
+++ b/rustdoc/latest/zcash_client_backend/keys/enum.AddressGenerationError.html
@@ -1,4 +1,4 @@
-AddressGenerationError in zcash_client_backend::keys - Rust pub enum AddressGenerationError {
+AddressGenerationError in zcash_client_backend::keys - Rust Enum AddressGenerationError
pub enum AddressGenerationError {
InvalidTransparentChildIndex(DiversifierIndex),
InvalidSaplingDiversifierIndex(DiversifierIndex),
DiversifierSpaceExhausted,
@@ -16,7 +16,7 @@
address lacks an item of the requested type.
§ShieldedReceiverRequired
A Unified address cannot be generated without at least one shielded receiver being
included.
-
Trait Implementations§
Source§impl Clone for AddressGenerationError
Source§fn clone(&self) -> AddressGenerationError
Returns a copy of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moreSource§impl Debug for AddressGenerationError
Source§impl Display for AddressGenerationError
Source§impl Error for AddressGenerationError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Auto Trait Implementations§
§impl Freeze for AddressGenerationError
§impl RefUnwindSafe for AddressGenerationError
§impl Send for AddressGenerationError
§impl Sync for AddressGenerationError
§impl Unpin for AddressGenerationError
§impl UnwindSafe for AddressGenerationError
Blanket Implementations§
Trait Implementations§
§impl Clone for AddressGenerationError
§fn clone(&self) -> AddressGenerationError
Returns a copy of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more§impl Debug for AddressGenerationError
§impl Display for AddressGenerationError
§impl Error for AddressGenerationError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Auto Trait Implementations§
§impl Freeze for AddressGenerationError
§impl RefUnwindSafe for AddressGenerationError
§impl Send for AddressGenerationError
§impl Sync for AddressGenerationError
§impl Unpin for AddressGenerationError
§impl UnwindSafe for AddressGenerationError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moreSource§impl<T> CloneToUninit for Twhere
diff --git a/rustdoc/latest/zcash_client_backend/keys/enum.DecodingError.html b/rustdoc/latest/zcash_client_backend/keys/enum.DecodingError.html
index a2a2a62df..e9e77bb08 100644
--- a/rustdoc/latest/zcash_client_backend/keys/enum.DecodingError.html
+++ b/rustdoc/latest/zcash_client_backend/keys/enum.DecodingError.html
@@ -1,4 +1,4 @@
-DecodingError in zcash_client_backend::keys - Rust pub enum DecodingError {
+DecodingError in zcash_client_backend::keys - Rust Enum DecodingError
pub enum DecodingError {
ReadError(&'static str),
EraInvalid,
EraMismatch(Era),
@@ -9,8 +9,8 @@
KeyDataInvalid(Typecode),
}
Expand description
A type for errors that can occur when decoding keys from their serialized representations.
Variants§
§ReadError(&'static str)
Available on crate feature unstable
only.§EraInvalid
Available on crate feature unstable
only.§EraMismatch(Era)
Available on crate feature unstable
only.§TypecodeInvalid
Available on crate feature unstable
only.§LengthInvalid
Available on crate feature unstable
only.§LengthMismatch(Typecode, u32)
Available on crate feature unstable
only.§InsufficientData(Typecode)
Available on crate feature unstable
only.§KeyDataInvalid(Typecode)
The key data could not be decoded from its string representation to a valid key.
-Trait Implementations§
Source§impl Debug for DecodingError
Source§impl Display for DecodingError
Source§impl Error for DecodingError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl PartialEq for DecodingError
Source§impl Eq for DecodingError
Source§impl StructuralPartialEq for DecodingError
Auto Trait Implementations§
§impl Freeze for DecodingError
§impl RefUnwindSafe for DecodingError
§impl Send for DecodingError
§impl Sync for DecodingError
§impl Unpin for DecodingError
§impl UnwindSafe for DecodingError
Blanket Implementations§
Trait Implementations§
§impl Debug for DecodingError
§impl Display for DecodingError
§impl Error for DecodingError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()§impl PartialEq for DecodingError
§impl Eq for DecodingError
§impl StructuralPartialEq for DecodingError
Auto Trait Implementations§
§impl Freeze for DecodingError
§impl RefUnwindSafe for DecodingError
§impl Send for DecodingError
§impl Sync for DecodingError
§impl Unpin for DecodingError
§impl UnwindSafe for DecodingError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/rustdoc/latest/zcash_client_backend/keys/enum.DerivationError.html b/rustdoc/latest/zcash_client_backend/keys/enum.DerivationError.html
index 981b53d27..78ea5d625 100644
--- a/rustdoc/latest/zcash_client_backend/keys/enum.DerivationError.html
+++ b/rustdoc/latest/zcash_client_backend/keys/enum.DerivationError.html
@@ -1,6 +1,6 @@
-DerivationError in zcash_client_backend::keys - Rust
pub enum Receiver {
+Receiver in zcash_client_backend::address - Rust Enum Receiver
pub enum Receiver {
Sapling(PaymentAddress),
Transparent(TransparentAddress),
}
Expand description
An enumeration of protocol-level receiver types.
While these correspond to unified address receiver types, this is a distinct type because it is
used to represent the protocol-level recipient of a transfer, instead of a part of an encoded
address.
-Variants§
Implementations§
Source§impl Receiver
Sourcepub fn to_zcash_address(&self, net: NetworkType) -> ZcashAddress
Converts this receiver to a [ZcashAddress
] for the given network.
+Variants§
Implementations§
§impl Receiver
pub fn to_zcash_address(&self, net: NetworkType) -> ZcashAddress
Converts this receiver to a [ZcashAddress
] for the given network.
This conversion function selects the least-capable address format possible; this means that
Orchard receivers will be rendered as Unified addresses, Sapling receivers will be rendered
as bare Sapling addresses, and Transparent receivers will be rendered as taddrs.
-Sourcepub fn corresponds(&self, addr: &ZcashAddress) -> bool
Returns whether or not this receiver corresponds to addr
, or is contained
+
pub fn corresponds(&self, addr: &ZcashAddress) -> bool
Returns whether or not this receiver corresponds to addr
, or is contained
in addr
when the latter is a Unified Address.
Auto Trait Implementations§
§impl Freeze for Receiver
§impl RefUnwindSafe for Receiver
§impl Send for Receiver
§impl Sync for Receiver
§impl Unpin for Receiver
§impl UnwindSafe for Receiver
Blanket Implementations§
Source§impl<T> Borrow<T> for Twhere
diff --git a/rustdoc/latest/zcash_client_backend/address/index.html b/rustdoc/latest/zcash_client_backend/address/index.html
index e7a16670c..834340fa5 100644
--- a/rustdoc/latest/zcash_client_backend/address/index.html
+++ b/rustdoc/latest/zcash_client_backend/address/index.html
@@ -1,2 +1,2 @@
-zcash_client_backend::address - Rust Expand description
Structs for handling supported address types.
+zcash_client_backend::address - Rust
\ No newline at end of file
diff --git a/rustdoc/latest/zcash_client_backend/address/struct.UnifiedAddress.html b/rustdoc/latest/zcash_client_backend/address/struct.UnifiedAddress.html
index 3fd880199..2e0a63514 100644
--- a/rustdoc/latest/zcash_client_backend/address/struct.UnifiedAddress.html
+++ b/rustdoc/latest/zcash_client_backend/address/struct.UnifiedAddress.html
@@ -1,25 +1,25 @@
-UnifiedAddress in zcash_client_backend::address - Rust pub struct UnifiedAddress { /* private fields */ }
Expand description
A Unified Address.
-Implementations§
Source§impl UnifiedAddress
Sourcepub fn from_receivers(
+UnifiedAddress in zcash_client_backend::address - Rust Struct UnifiedAddress
pub struct UnifiedAddress { /* private fields */ }
Expand description
A Unified Address.
+Implementations§
§impl UnifiedAddress
pub fn from_receivers(
sapling: Option<PaymentAddress>,
transparent: Option<TransparentAddress>,
) -> Option<UnifiedAddress>
Constructs a Unified Address from a given set of receivers.
Returns None
if the receivers would produce an invalid Unified Address (namely,
if no shielded receiver is provided).
-Sourcepub fn has_orchard(&self) -> bool
Returns whether this address has an Orchard receiver.
+pub fn has_orchard(&self) -> bool
Returns whether this address has an Orchard receiver.
This method is available irrespective of whether the orchard
feature flag is enabled.
-Sourcepub fn has_sapling(&self) -> bool
Returns whether this address has a Sapling receiver.
-Sourcepub fn sapling(&self) -> Option<&PaymentAddress>
Available on crate feature sapling
only.
Returns the Sapling receiver within this Unified Address, if any.
-Sourcepub fn has_transparent(&self) -> bool
Returns whether this address has a Transparent receiver.
-Sourcepub fn transparent(&self) -> Option<&TransparentAddress>
Returns the transparent receiver within this Unified Address, if any.
-Sourcepub fn unknown(&self) -> &[(u32, Vec<u8>)]
Returns the set of unknown receivers of the unified address.
-pub fn has_sapling(&self) -> bool
Returns whether this address has a Sapling receiver.
+pub fn sapling(&self) -> Option<&PaymentAddress>
Available on crate feature sapling
only.
Returns the Sapling receiver within this Unified Address, if any.
+pub fn has_transparent(&self) -> bool
Returns whether this address has a Transparent receiver.
+pub fn transparent(&self) -> Option<&TransparentAddress>
Returns the transparent receiver within this Unified Address, if any.
+pub fn unknown(&self) -> &[(u32, Vec<u8>)]
Returns the set of unknown receivers of the unified address.
+pub fn encode<P>(&self, params: &P) -> Stringwhere
P: Parameters,
Returns the string encoding of this UnifiedAddress
for the given network.
-Sourcepub fn receiver_types(&self) -> Vec<Typecode>
Returns the set of receiver typecodes.
-Trait Implementations§
Source§impl<P> AddressCodec<P> for UnifiedAddresswhere
- P: Parameters,
Source§impl Clone for UnifiedAddress
Source§fn clone(&self) -> UnifiedAddress
Returns a copy of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moreSource§impl Debug for UnifiedAddress
Source§impl From<UnifiedAddress> for Address
Source§fn from(addr: UnifiedAddress) -> Address
Converts to this type from the input type.Source§impl PartialEq for UnifiedAddress
Source§impl TryFrom<Address> for UnifiedAddress
pub fn receiver_types(&self) -> Vec<Typecode>
Returns the set of receiver typecodes.
+Trait Implementations§
§impl<P> AddressCodec<P> for UnifiedAddresswhere
+ P: Parameters,
§impl Clone for UnifiedAddress
§fn clone(&self) -> UnifiedAddress
Returns a copy of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more§impl Debug for UnifiedAddress
§impl From<UnifiedAddress> for Address
§fn from(addr: UnifiedAddress) -> Address
Converts to this type from the input type.§impl PartialEq for UnifiedAddress
§impl TryFrom<Address> for UnifiedAddress
§fn try_from(
ua: Address,
-) -> Result<UnifiedAddress, <UnifiedAddress as TryFrom<Address>>::Error>
Performs the conversion.Source§impl Eq for UnifiedAddress
Source§impl StructuralPartialEq for UnifiedAddress
Auto Trait Implementations§
§impl Freeze for UnifiedAddress
§impl RefUnwindSafe for UnifiedAddress
§impl Send for UnifiedAddress
§impl Sync for UnifiedAddress
§impl Unpin for UnifiedAddress
§impl UnwindSafe for UnifiedAddress
Blanket Implementations§
Source§impl<T> Any for Twhere
+) -> Result<UnifiedAddress, <UnifiedAddress as TryFrom<Address>>::Error>Performs the conversion.
§impl Eq for UnifiedAddress
§impl StructuralPartialEq for UnifiedAddress
Auto Trait Implementations§
§impl Freeze for UnifiedAddress
§impl RefUnwindSafe for UnifiedAddress
§impl Send for UnifiedAddress
§impl Sync for UnifiedAddress
§impl Unpin for UnifiedAddress
§impl UnwindSafe for UnifiedAddress
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moreSource§impl<T> CloneToUninit for Twhere
diff --git a/rustdoc/latest/zcash_client_backend/address/testing/fn.arb_addr.html b/rustdoc/latest/zcash_client_backend/address/testing/fn.arb_addr.html
index dae0e2a2d..987f22732 100644
--- a/rustdoc/latest/zcash_client_backend/address/testing/fn.arb_addr.html
+++ b/rustdoc/latest/zcash_client_backend/address/testing/fn.arb_addr.html
@@ -1,3 +1,3 @@
-arb_addr in zcash_client_backend::address::testing - Rust pub fn arb_addr(
+arb_addr in zcash_client_backend::address::testing - Rust Function arb_addr
pub fn arb_addr(
request: UnifiedAddressRequest,
) -> impl Strategy<Value = Address>
Available on (crate features orchard
or sapling
or transparent-inputs
) and crate feature test-dependencies
and crate feature sapling
only.
\ No newline at end of file
diff --git a/rustdoc/latest/zcash_client_backend/address/testing/fn.arb_unified_addr.html b/rustdoc/latest/zcash_client_backend/address/testing/fn.arb_unified_addr.html
index 5fd797ed4..dfec70de0 100644
--- a/rustdoc/latest/zcash_client_backend/address/testing/fn.arb_unified_addr.html
+++ b/rustdoc/latest/zcash_client_backend/address/testing/fn.arb_unified_addr.html
@@ -1,4 +1,4 @@
-arb_unified_addr in zcash_client_backend::address::testing - Rust pub fn arb_unified_addr(
+arb_unified_addr in zcash_client_backend::address::testing - Rust Function arb_unified_addr
pub fn arb_unified_addr(
params: Network,
request: UnifiedAddressRequest,
) -> impl Strategy<Value = UnifiedAddress>
Available on (crate features orchard
or sapling
or transparent-inputs
) and crate feature test-dependencies
only.
\ No newline at end of file
diff --git a/rustdoc/latest/zcash_client_backend/address/testing/index.html b/rustdoc/latest/zcash_client_backend/address/testing/index.html
index e04ddc071..e31de0773 100644
--- a/rustdoc/latest/zcash_client_backend/address/testing/index.html
+++ b/rustdoc/latest/zcash_client_backend/address/testing/index.html
@@ -1 +1 @@
-zcash_client_backend::address::testing - Rust
\ No newline at end of file
+zcash_client_backend::address::testing - Rust
\ No newline at end of file
diff --git a/rustdoc/latest/zcash_client_backend/encoding/enum.Bech32DecodeError.html b/rustdoc/latest/zcash_client_backend/encoding/enum.Bech32DecodeError.html
index dfcb3bbb1..456e31611 100644
--- a/rustdoc/latest/zcash_client_backend/encoding/enum.Bech32DecodeError.html
+++ b/rustdoc/latest/zcash_client_backend/encoding/enum.Bech32DecodeError.html
@@ -1,4 +1,4 @@
-Bech32DecodeError in zcash_client_backend::encoding - Rust pub enum Bech32DecodeError {
+Bech32DecodeError in zcash_client_backend::encoding - Rust Enum Bech32DecodeError
pub enum Bech32DecodeError {
Bech32Error(Error),
IncorrectVariant(Variant),
ReadError,
@@ -6,8 +6,8 @@
expected: String,
actual: String,
},
-}
Available on crate feature sapling
only.Variants§
Trait Implementations§
Source§impl Clone for Bech32DecodeError
Source§fn clone(&self) -> Bech32DecodeError
Returns a copy of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moreSource§impl Debug for Bech32DecodeError
Source§impl Display for Bech32DecodeError
Source§impl Error for Bech32DecodeError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<Error> for Bech32DecodeError
Source§fn from(err: Error) -> Bech32DecodeError
Converts to this type from the input type.Source§impl PartialEq for Bech32DecodeError
Source§impl Eq for Bech32DecodeError
Source§impl StructuralPartialEq for Bech32DecodeError
Auto Trait Implementations§
§impl Freeze for Bech32DecodeError
§impl RefUnwindSafe for Bech32DecodeError
§impl Send for Bech32DecodeError
§impl Sync for Bech32DecodeError
§impl Unpin for Bech32DecodeError
§impl UnwindSafe for Bech32DecodeError
Blanket Implementations§
Source§impl<T> Any for Twhere
+}Available on crate feature sapling
only.Variants§
Trait Implementations§
§impl Clone for Bech32DecodeError
§fn clone(&self) -> Bech32DecodeError
Returns a copy of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more§impl Debug for Bech32DecodeError
§impl Display for Bech32DecodeError
§impl Error for Bech32DecodeError
§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()§impl From<Error> for Bech32DecodeError
§fn from(err: Error) -> Bech32DecodeError
Converts to this type from the input type.§impl PartialEq for Bech32DecodeError
§impl Eq for Bech32DecodeError
§impl StructuralPartialEq for Bech32DecodeError
Auto Trait Implementations§
§impl Freeze for Bech32DecodeError
§impl RefUnwindSafe for Bech32DecodeError
§impl Send for Bech32DecodeError
§impl Sync for Bech32DecodeError
§impl Unpin for Bech32DecodeError
§impl UnwindSafe for Bech32DecodeError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moreSource§impl<T> CloneToUninit for Twhere
diff --git a/rustdoc/latest/zcash_client_backend/encoding/enum.TransparentCodecError.html b/rustdoc/latest/zcash_client_backend/encoding/enum.TransparentCodecError.html
index 130027814..0197804b8 100644
--- a/rustdoc/latest/zcash_client_backend/encoding/enum.TransparentCodecError.html
+++ b/rustdoc/latest/zcash_client_backend/encoding/enum.TransparentCodecError.html
@@ -1,7 +1,7 @@
-TransparentCodecError in zcash_client_backend::encoding - Rust pub enum TransparentCodecError {
+TransparentCodecError in zcash_client_backend::encoding - Rust Enum TransparentCodecError
pub enum TransparentCodecError {
UnsupportedAddressType(String),
Base58(Error),
-}
Variants§
Trait Implementations§
Source§impl Debug for TransparentCodecError
Source§impl Display for TransparentCodecError
Source§impl Error for TransparentCodecError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Auto Trait Implementations§
§impl Freeze for TransparentCodecError
§impl RefUnwindSafe for TransparentCodecError
§impl Send for TransparentCodecError
§impl Sync for TransparentCodecError
§impl Unpin for TransparentCodecError
§impl UnwindSafe for TransparentCodecError
Blanket Implementations§
Source§impl<T> Any for Twhere
+}Variants§
Trait Implementations§
§impl Debug for TransparentCodecError
§impl Display for TransparentCodecError
§impl Error for TransparentCodecError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Auto Trait Implementations§
§impl Freeze for TransparentCodecError
§impl RefUnwindSafe for TransparentCodecError
§impl Send for TransparentCodecError
§impl Sync for TransparentCodecError
§impl Unpin for TransparentCodecError
§impl UnwindSafe for TransparentCodecError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/rustdoc/latest/zcash_client_backend/encoding/fn.decode_extended_full_viewing_key.html b/rustdoc/latest/zcash_client_backend/encoding/fn.decode_extended_full_viewing_key.html
index 7e1997f1f..9f03ba990 100644
--- a/rustdoc/latest/zcash_client_backend/encoding/fn.decode_extended_full_viewing_key.html
+++ b/rustdoc/latest/zcash_client_backend/encoding/fn.decode_extended_full_viewing_key.html
@@ -1,4 +1,4 @@
-decode_extended_full_viewing_key in zcash_client_backend::encoding - Rust pub fn decode_extended_full_viewing_key(
+decode_extended_full_viewing_key in zcash_client_backend::encoding - Rust Function decode_extended_full_viewing_key
pub fn decode_extended_full_viewing_key(
hrp: &str,
s: &str,
) -> Result<ExtendedFullViewingKey, Bech32DecodeError>
Available on crate feature sapling
only.Expand description
Decodes an ExtendedFullViewingKey
from a Bech32-encoded string, verifying that it matches
diff --git a/rustdoc/latest/zcash_client_backend/encoding/fn.decode_extended_spending_key.html b/rustdoc/latest/zcash_client_backend/encoding/fn.decode_extended_spending_key.html
index 82cc892a9..9406545a9 100644
--- a/rustdoc/latest/zcash_client_backend/encoding/fn.decode_extended_spending_key.html
+++ b/rustdoc/latest/zcash_client_backend/encoding/fn.decode_extended_spending_key.html
@@ -1,4 +1,4 @@
-
decode_extended_spending_key in zcash_client_backend::encoding - Rust pub fn decode_extended_spending_key(
+decode_extended_spending_key in zcash_client_backend::encoding - Rust Function decode_extended_spending_key
pub fn decode_extended_spending_key(
hrp: &str,
s: &str,
) -> Result<ExtendedSpendingKey, Bech32DecodeError>
Available on crate feature sapling
only.Expand description
Decodes an ExtendedSpendingKey
from a Bech32-encoded string.
diff --git a/rustdoc/latest/zcash_client_backend/encoding/fn.decode_extfvk_with_network.html b/rustdoc/latest/zcash_client_backend/encoding/fn.decode_extfvk_with_network.html
index f08468b62..1c1ee3159 100644
--- a/rustdoc/latest/zcash_client_backend/encoding/fn.decode_extfvk_with_network.html
+++ b/rustdoc/latest/zcash_client_backend/encoding/fn.decode_extfvk_with_network.html
@@ -1,4 +1,4 @@
-decode_extfvk_with_network in zcash_client_backend::encoding - Rust pub fn decode_extfvk_with_network(
+decode_extfvk_with_network in zcash_client_backend::encoding - Rust Function decode_extfvk_with_network
pub fn decode_extfvk_with_network(
s: &str,
) -> Result<(NetworkType, ExtendedFullViewingKey), Bech32DecodeError>
Available on crate feature sapling
only.Expand description
Decodes an ExtendedFullViewingKey
and the [NetworkType
] that it is intended for use with
from a Bech32-encoded string.
diff --git a/rustdoc/latest/zcash_client_backend/encoding/fn.decode_payment_address.html b/rustdoc/latest/zcash_client_backend/encoding/fn.decode_payment_address.html
index 6268aa8c3..7fb212659 100644
--- a/rustdoc/latest/zcash_client_backend/encoding/fn.decode_payment_address.html
+++ b/rustdoc/latest/zcash_client_backend/encoding/fn.decode_payment_address.html
@@ -1,4 +1,4 @@
-decode_payment_address in zcash_client_backend::encoding - Rust pub fn decode_payment_address(
+decode_payment_address in zcash_client_backend::encoding - Rust Function decode_payment_address
pub fn decode_payment_address(
hrp: &str,
s: &str,
) -> Result<PaymentAddress, Bech32DecodeError>
Available on crate feature sapling
only.Expand description
Decodes a PaymentAddress
from a Bech32-encoded string.
diff --git a/rustdoc/latest/zcash_client_backend/encoding/fn.decode_transparent_address.html b/rustdoc/latest/zcash_client_backend/encoding/fn.decode_transparent_address.html
index 686d2f775..6fcf664ea 100644
--- a/rustdoc/latest/zcash_client_backend/encoding/fn.decode_transparent_address.html
+++ b/rustdoc/latest/zcash_client_backend/encoding/fn.decode_transparent_address.html
@@ -1,4 +1,4 @@
-decode_transparent_address in zcash_client_backend::encoding - Rust pub fn decode_transparent_address(
+decode_transparent_address in zcash_client_backend::encoding - Rust Function decode_transparent_address
pub fn decode_transparent_address(
pubkey_version: &[u8],
script_version: &[u8],
s: &str,
diff --git a/rustdoc/latest/zcash_client_backend/encoding/fn.encode_extended_full_viewing_key.html b/rustdoc/latest/zcash_client_backend/encoding/fn.encode_extended_full_viewing_key.html
index 5cf6ea13a..dd025704c 100644
--- a/rustdoc/latest/zcash_client_backend/encoding/fn.encode_extended_full_viewing_key.html
+++ b/rustdoc/latest/zcash_client_backend/encoding/fn.encode_extended_full_viewing_key.html
@@ -1,4 +1,4 @@
-encode_extended_full_viewing_key in zcash_client_backend::encoding - Rust pub fn encode_extended_full_viewing_key(
+encode_extended_full_viewing_key in zcash_client_backend::encoding - Rust Function encode_extended_full_viewing_key
pub fn encode_extended_full_viewing_key(
hrp: &str,
extfvk: &ExtendedFullViewingKey,
) -> String
Available on crate feature sapling
only.Expand description
Writes an ExtendedFullViewingKey
as a Bech32-encoded string.
diff --git a/rustdoc/latest/zcash_client_backend/encoding/fn.encode_extended_spending_key.html b/rustdoc/latest/zcash_client_backend/encoding/fn.encode_extended_spending_key.html
index 9b0ac9acc..119e6ea28 100644
--- a/rustdoc/latest/zcash_client_backend/encoding/fn.encode_extended_spending_key.html
+++ b/rustdoc/latest/zcash_client_backend/encoding/fn.encode_extended_spending_key.html
@@ -1,4 +1,4 @@
-encode_extended_spending_key in zcash_client_backend::encoding - Rust pub fn encode_extended_spending_key(
+encode_extended_spending_key in zcash_client_backend::encoding - Rust Function encode_extended_spending_key
pub fn encode_extended_spending_key(
hrp: &str,
extsk: &ExtendedSpendingKey,
) -> String
Available on crate feature sapling
only.Expand description
Writes an ExtendedSpendingKey
as a Bech32-encoded string.
diff --git a/rustdoc/latest/zcash_client_backend/encoding/fn.encode_payment_address.html b/rustdoc/latest/zcash_client_backend/encoding/fn.encode_payment_address.html
index 8a6d33a7e..0b687dae2 100644
--- a/rustdoc/latest/zcash_client_backend/encoding/fn.encode_payment_address.html
+++ b/rustdoc/latest/zcash_client_backend/encoding/fn.encode_payment_address.html
@@ -1,4 +1,4 @@
-encode_payment_address in zcash_client_backend::encoding - Rust pub fn encode_payment_address(hrp: &str, addr: &PaymentAddress) -> String
Available on crate feature sapling
only.Expand description
Writes a PaymentAddress
as a Bech32-encoded string.
+encode_payment_address in zcash_client_backend::encoding - Rust Function encode_payment_address
pub fn encode_payment_address(hrp: &str, addr: &PaymentAddress) -> String
Available on crate feature sapling
only.Expand description
Writes a PaymentAddress
as a Bech32-encoded string.
§Examples
use group::Group;
use sapling::{Diversifier, PaymentAddress};
diff --git a/rustdoc/latest/zcash_client_backend/encoding/fn.encode_payment_address_p.html b/rustdoc/latest/zcash_client_backend/encoding/fn.encode_payment_address_p.html
index 523a89b3b..ad25618d9 100644
--- a/rustdoc/latest/zcash_client_backend/encoding/fn.encode_payment_address_p.html
+++ b/rustdoc/latest/zcash_client_backend/encoding/fn.encode_payment_address_p.html
@@ -1,4 +1,4 @@
-encode_payment_address_p in zcash_client_backend::encoding - Rust pub fn encode_payment_address_p<P>(params: &P, addr: &PaymentAddress) -> Stringwhere
+encode_payment_address_p in zcash_client_backend::encoding - Rust Function encode_payment_address_p
pub fn encode_payment_address_p<P>(params: &P, addr: &PaymentAddress) -> Stringwhere
P: Parameters,
Available on crate feature sapling
only.Expand description
Writes a PaymentAddress
as a Bech32-encoded string
using the human-readable prefix values defined in the specified
network parameters.
diff --git a/rustdoc/latest/zcash_client_backend/encoding/fn.encode_transparent_address.html b/rustdoc/latest/zcash_client_backend/encoding/fn.encode_transparent_address.html
index b77483549..fde244182 100644
--- a/rustdoc/latest/zcash_client_backend/encoding/fn.encode_transparent_address.html
+++ b/rustdoc/latest/zcash_client_backend/encoding/fn.encode_transparent_address.html
@@ -1,4 +1,4 @@
-encode_transparent_address in zcash_client_backend::encoding - Rust pub fn encode_transparent_address(
+encode_transparent_address in zcash_client_backend::encoding - Rust Function encode_transparent_address
pub fn encode_transparent_address(
pubkey_version: &[u8],
script_version: &[u8],
addr: &TransparentAddress,
diff --git a/rustdoc/latest/zcash_client_backend/encoding/fn.encode_transparent_address_p.html b/rustdoc/latest/zcash_client_backend/encoding/fn.encode_transparent_address_p.html
index f1357e073..01219e937 100644
--- a/rustdoc/latest/zcash_client_backend/encoding/fn.encode_transparent_address_p.html
+++ b/rustdoc/latest/zcash_client_backend/encoding/fn.encode_transparent_address_p.html
@@ -1,4 +1,4 @@
-encode_transparent_address_p in zcash_client_backend::encoding - Rust pub fn encode_transparent_address_p<P>(
+encode_transparent_address_p in zcash_client_backend::encoding - Rust Function encode_transparent_address_p
pub fn encode_transparent_address_p<P>(
params: &P,
addr: &TransparentAddress,
) -> Stringwhere
diff --git a/rustdoc/latest/zcash_client_backend/encoding/index.html b/rustdoc/latest/zcash_client_backend/encoding/index.html
index af51e48c4..28ab56b10 100644
--- a/rustdoc/latest/zcash_client_backend/encoding/index.html
+++ b/rustdoc/latest/zcash_client_backend/encoding/index.html
@@ -1,4 +1,4 @@
-zcash_client_backend::encoding - Rust Expand description
Encoding and decoding functions for Zcash key and address structs.
+zcash_client_backend::encoding - Rust Module encoding
Expand description
Encoding and decoding functions for Zcash key and address structs.
Human-Readable Prefixes (HRPs) for Bech32 encodings are located in the
[zcash_primitives::constants] module.
Enums§
- Bech32
DecodeError sapling
Traits§
- A trait for encoding and decoding Zcash addresses.
Functions§
- Decodes an
ExtendedFullViewingKey
from a Bech32-encoded string, verifying that it matches
diff --git a/rustdoc/latest/zcash_client_backend/encoding/trait.AddressCodec.html b/rustdoc/latest/zcash_client_backend/encoding/trait.AddressCodec.html
index e34d00c73..c49068e84 100644
--- a/rustdoc/latest/zcash_client_backend/encoding/trait.AddressCodec.html
+++ b/rustdoc/latest/zcash_client_backend/encoding/trait.AddressCodec.html
@@ -1,28 +1,28 @@
-AddressCodec in zcash_client_backend::encoding - Rust pub trait AddressCodec<P>: Sized {
+AddressCodec in zcash_client_backend::encoding - Rust Trait AddressCodec
pub trait AddressCodec<P>: Sized {
type Error;
// Required methods
fn encode(&self, params: &P) -> String;
fn decode(params: &P, address: &str) -> Result<Self, Self::Error>;
}
Expand description
A trait for encoding and decoding Zcash addresses.
-Required Associated Types§
Required Methods§
Required Associated Types§
type Error
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
§impl<P> AddressCodec<P> for PaymentAddresswhere
+ P: Parameters,
Available on crate feature sapling
only.
Source§impl<P> AddressCodec<P> for TransparentAddresswhere
- P: Parameters,
§impl<P> AddressCodec<P> for TransparentAddresswhere
+ P: Parameters,
Implementors§
Source§impl<P> AddressCodec<P> for UnifiedAddresswhere
- P: Parameters,
\ No newline at end of file
+) -> Result<TransparentAddress, TransparentCodecError>
Implementors§
§impl<P> AddressCodec<P> for UnifiedAddresswhere
+ P: Parameters,
\ No newline at end of file
diff --git a/rustdoc/latest/zcash_client_backend/keys/enum.AddressGenerationError.html b/rustdoc/latest/zcash_client_backend/keys/enum.AddressGenerationError.html
index 7090a86da..2b600f800 100644
--- a/rustdoc/latest/zcash_client_backend/keys/enum.AddressGenerationError.html
+++ b/rustdoc/latest/zcash_client_backend/keys/enum.AddressGenerationError.html
@@ -1,4 +1,4 @@
-AddressGenerationError in zcash_client_backend::keys - Rust pub enum AddressGenerationError {
+AddressGenerationError in zcash_client_backend::keys - Rust Enum AddressGenerationError
pub enum AddressGenerationError {
InvalidTransparentChildIndex(DiversifierIndex),
InvalidSaplingDiversifierIndex(DiversifierIndex),
DiversifierSpaceExhausted,
@@ -16,7 +16,7 @@
address lacks an item of the requested type.
§ShieldedReceiverRequired
A Unified address cannot be generated without at least one shielded receiver being
included.
-
Trait Implementations§
Source§impl Clone for AddressGenerationError
Source§fn clone(&self) -> AddressGenerationError
Returns a copy of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moreSource§impl Debug for AddressGenerationError
Source§impl Display for AddressGenerationError
Source§impl Error for AddressGenerationError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Auto Trait Implementations§
§impl Freeze for AddressGenerationError
§impl RefUnwindSafe for AddressGenerationError
§impl Send for AddressGenerationError
§impl Sync for AddressGenerationError
§impl Unpin for AddressGenerationError
§impl UnwindSafe for AddressGenerationError
Blanket Implementations§
Trait Implementations§
§impl Clone for AddressGenerationError
§fn clone(&self) -> AddressGenerationError
Returns a copy of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more§impl Debug for AddressGenerationError
§impl Display for AddressGenerationError
§impl Error for AddressGenerationError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Auto Trait Implementations§
§impl Freeze for AddressGenerationError
§impl RefUnwindSafe for AddressGenerationError
§impl Send for AddressGenerationError
§impl Sync for AddressGenerationError
§impl Unpin for AddressGenerationError
§impl UnwindSafe for AddressGenerationError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moreSource§impl<T> CloneToUninit for Twhere
diff --git a/rustdoc/latest/zcash_client_backend/keys/enum.DecodingError.html b/rustdoc/latest/zcash_client_backend/keys/enum.DecodingError.html
index a2a2a62df..e9e77bb08 100644
--- a/rustdoc/latest/zcash_client_backend/keys/enum.DecodingError.html
+++ b/rustdoc/latest/zcash_client_backend/keys/enum.DecodingError.html
@@ -1,4 +1,4 @@
-DecodingError in zcash_client_backend::keys - Rust pub enum DecodingError {
+DecodingError in zcash_client_backend::keys - Rust Enum DecodingError
pub enum DecodingError {
ReadError(&'static str),
EraInvalid,
EraMismatch(Era),
@@ -9,8 +9,8 @@
KeyDataInvalid(Typecode),
}
Expand description
A type for errors that can occur when decoding keys from their serialized representations.
Variants§
§ReadError(&'static str)
Available on crate feature unstable
only.§EraInvalid
Available on crate feature unstable
only.§EraMismatch(Era)
Available on crate feature unstable
only.§TypecodeInvalid
Available on crate feature unstable
only.§LengthInvalid
Available on crate feature unstable
only.§LengthMismatch(Typecode, u32)
Available on crate feature unstable
only.§InsufficientData(Typecode)
Available on crate feature unstable
only.§KeyDataInvalid(Typecode)
The key data could not be decoded from its string representation to a valid key.
-Trait Implementations§
Source§impl Debug for DecodingError
Source§impl Display for DecodingError
Source§impl Error for DecodingError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl PartialEq for DecodingError
Source§impl Eq for DecodingError
Source§impl StructuralPartialEq for DecodingError
Auto Trait Implementations§
§impl Freeze for DecodingError
§impl RefUnwindSafe for DecodingError
§impl Send for DecodingError
§impl Sync for DecodingError
§impl Unpin for DecodingError
§impl UnwindSafe for DecodingError
Blanket Implementations§
Trait Implementations§
§impl Debug for DecodingError
§impl Display for DecodingError
§impl Error for DecodingError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()§impl PartialEq for DecodingError
§impl Eq for DecodingError
§impl StructuralPartialEq for DecodingError
Auto Trait Implementations§
§impl Freeze for DecodingError
§impl RefUnwindSafe for DecodingError
§impl Send for DecodingError
§impl Sync for DecodingError
§impl Unpin for DecodingError
§impl UnwindSafe for DecodingError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/rustdoc/latest/zcash_client_backend/keys/enum.DerivationError.html b/rustdoc/latest/zcash_client_backend/keys/enum.DerivationError.html
index 981b53d27..78ea5d625 100644
--- a/rustdoc/latest/zcash_client_backend/keys/enum.DerivationError.html
+++ b/rustdoc/latest/zcash_client_backend/keys/enum.DerivationError.html
@@ -1,6 +1,6 @@
-DerivationError in zcash_client_backend::keys - Rust