Expand description
String-encoding prefixes for Zcash addresses and Unified containers.
Each network’s prefixes are in the mainnet, testnet, and regtest
modules. The functions in this module select the prefix for a given
[NetworkType].
Prefixes for encodings of keys that this crate does not handle, such as Sapling
extended keys, are defined in the zcash_keys crate.
Modules§
- mainnet
- String-encoding prefixes for the Zcash main network.
- regtest
- String-encoding prefixes for a local regression-testing network.
- testnet
- String-encoding prefixes for the Zcash test network.
Functions§
- b58_
pubkey_ address_ prefix - Returns the prefix for a Base58Check-encoded transparent P2PKH address on the given network.
- b58_
script_ address_ prefix - Returns the prefix for a Base58Check-encoded transparent P2SH address on the given network.
- b58_
sprout_ address_ prefix - Returns the prefix for a Base58Check-encoded Sprout address on the given network.
- hrp_
sapling_ payment_ address - Returns the HRP for a Bech32-encoded Sapling payment address on the given network.
- hrp_
tex_ address - Returns the HRP for a Bech32m-encoded ZIP 320 TEX address on the given network.
- hrp_
unified_ address - Returns the HRP for a Bech32m-encoded Revision 0 Unified Address on the given network.
- hrp_
unified_ address_ r2 - Returns the HRP for a Bech32m-encoded shielded-only Revision 2 Unified Address on the given network.
- hrp_
unified_ address_ r2_ ti - Returns the HRP for a Bech32m-encoded transparent-including Revision 2 Unified Address on the given network.
- hrp_
unified_ fvk - Returns the HRP for a Bech32m-encoded Revision 0 Unified FVK on the given network.
- hrp_
unified_ fvk_ r2 - Returns the HRP for a Bech32m-encoded Revision 2 Unified FVK on the given network.
- hrp_
unified_ ivk - Returns the HRP for a Bech32m-encoded Revision 0 Unified IVK on the given network.
- hrp_
unified_ ivk_ r2 - Returns the HRP for a Bech32m-encoded Revision 2 Unified IVK on the given network.