class Pay2SHAddress extends ErgoAddress
Implementation of pay-to-script-hash ErgoAddress.
- Alphabetic
- By Inheritance
- Pay2SHAddress
- ErgoAddress
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Pay2SHAddress(scriptHash: Array[Byte])(implicit encoder: ErgoAddressEncoder)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
val
addressTypePrefix: Byte
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.
- Definition Classes
- Pay2SHAddress → ErgoAddress
- See also
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
val
contentBytes: Array[Byte]
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.
- Definition Classes
- Pay2SHAddress → ErgoAddress
- See also
- implicit val encoder: ErgoAddressEncoder
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(obj: Any): Boolean
- Definition Classes
- Pay2SHAddress → AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- Pay2SHAddress → AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
networkPrefix: NetworkPrefix
Network type code to be used in address encoding.
Network type code to be used in address encoding.
- Definition Classes
- Pay2SHAddress → ErgoAddress
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
val
script: ErgoTree
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)
- Definition Classes
- Pay2SHAddress → ErgoAddress
- See also
ErgoLikeInterpreterSpecification the "P2SH - 160 bits" test
- val scriptHash: Array[Byte]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- Pay2SHAddress → AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()