Address type code used to differentiate between pay-to-public-key, pay-to-script, pay-to-script-hash addresses.
Address type code used to differentiate between pay-to-public-key, pay-to-script, pay-to-script-hash addresses.
NOTE: Network type code is defined by ErgoAddressEncoder attached to each ErgoAddress instance and it is not included in this value.
Serialized bytes of the address content (depending on the address type).
Serialized bytes of the address content (depending on the address type). Doesn't include network type and address type prefix byte.
Network type code to be used in address encoding.
Network type code to be used in address encoding.
The proposition which checks that contextVar(scriptId)
has original script
(whose hash equals to this scriptHash) which evaluates to true.
The proposition which checks that contextVar(scriptId)
has original script
(whose hash equals to this scriptHash) which evaluates to true.
Assumes the context variable is accessed as getVar[Coll[Byte]](1).get
and contains serialized original script bytes.
NOTE: This script is not stored in contentBytes of the address. So the address doesn't depend on this script which means this specific script can be changed without breaking the addresses.
NOTE: The ErgoTree is created without segregation of the constants.
NOTE: that P2SH address is using 192-bits hash, unlike the "P2SH - 160 bits" example (and well-known P2SH addresses in Bitcoin)
ErgoLikeInterpreterSpecification the "P2SH - 160 bits" test
(Since version ) see corresponding Javadoc for more information.
Implementation of pay-to-script-hash ErgoAddress.