Closed clarkmoody closed 7 years ago
The WitnessProgram::from_address function is the only place where constraints on the human-readable part are enforced.
WitnessProgram::from_address
Feature wish-list:
hrp
enum
String
Network
WitnessProgram
network
to_address
The
WitnessProgram::from_address
function is the only place where constraints on the human-readable part are enforced.Feature wish-list:
hrp
for mainnet and testnetenum
for networks, Function returnString
withhrp
value forNetwork
hrp
WitnessProgram
gains additionalnetwork
field.to_address
loseshrp
parameter, which is automatically set by value ofnetwork