case class ErgoAddressEncoder(networkPrefix: NetworkPrefix) extends Product with Serializable
Network-aware encoder for ErgoAddress <-> Base58String conversions.
- networkPrefix
network prefix value to be used in address encoding.
- Alphabetic
- By Inheritance
- ErgoAddressEncoder
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
ErgoAddressEncoder(networkPrefix: NetworkPrefix)
- networkPrefix
network prefix value to be used in address encoding.
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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
fromProposition(proposition: ErgoTree): Try[ErgoAddress]
Converts the given ErgoTree to the corresponding ErgoAddress.
Converts the given ErgoTree to the corresponding ErgoAddress. It is inverse of ErgoAddress.script such that
fromProposition(addr.script) == addr
- returns
Failure(ex) if the
proposition
cannot be converted to any type of address.
-
def
fromString(addrBase58Str: String): Try[ErgoAddress]
Converts the given Base58 string to ErgoAddress or an error packed in Try.
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isMainnetAddress(addrHeadByte: Byte): Boolean
Returns true if the given
addrHeadByte
is a header byte of a mainnet address, false otherwise. -
def
isTestnetAddress(addrHeadByte: Byte): Boolean
Returns true if the given
addrHeadByte
is a header byte of a testnet address, false otherwise. -
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val networkPrefix: NetworkPrefix
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(address: ErgoAddress): String
Converts the given ErgoAddress to Base58 string.
-
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()
-
object
IsPay2SHAddress
Pattern recognizer of Pay2SHAddress.script propositions.
Pattern recognizer of Pay2SHAddress.script propositions. If matched extracts the corresponding hash bytes as
Coll[Byte]
value.