Make the AddressEncoding type private

The `AddressEncoding` type exists solely to assist us in implementing
`Display` on `Address`, it may have been used in the past by alt-coins
back when we had a more tolerant outlook on supporting them. Nowadays
we explicitly do not support alts.
This commit is contained in:
Tobin C. Harding 2023-08-08 15:52:21 +10:00
parent df28e2f679
commit b12bf07232
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
1 changed files with 5 additions and 5 deletions

View File

@ -231,15 +231,15 @@ impl Payload {
/// A utility struct to encode an address payload with the given parameters.
/// This is a low-level utility struct. Consider using `Address` instead.
pub struct AddressEncoding<'a> {
struct AddressEncoding<'a> {
/// The address payload to encode.
pub payload: &'a Payload,
payload: &'a Payload,
/// base58 version byte for p2pkh payloads (e.g. 0x00 for "1..." addresses).
pub p2pkh_prefix: u8,
p2pkh_prefix: u8,
/// base58 version byte for p2sh payloads (e.g. 0x05 for "3..." addresses).
pub p2sh_prefix: u8,
p2sh_prefix: u8,
/// The bech32 human-readable part.
pub hrp: Hrp,
hrp: Hrp,
}
/// Formats bech32 as upper case if alternate formatting is chosen (`{:#}`).