Skip to main content

Module constants

Module constants 

Source
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.