Object

fr.acinq.bitcoin

Bech32

Related Doc: package bitcoin

Permalink

object Bech32

See https://github.com/sipa/bech32/blob/master/bip-witaddr.mediawiki

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Bech32
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type Int5 = Byte

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val alphabet: String

    Permalink
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def decode(bech32: String): (String, Array[Int5])

    Permalink

    decodes a bech32 string

    decodes a bech32 string

    bech32

    bech32 string

    returns

    a (hrp, data) tuple

  8. def decodeWitnessAddress(address: String): (String, Byte, ByteVector)

    Permalink

    decode a bitcoin witness address

    decode a bitcoin witness address

    address

    witness address

    returns

    a (prefix, version, program) tuple where prefix is the human-readble prefix, version is the witness version and program the decoded witness program. If version is 0, it will be either 20 bytes (P2WPKH) or 32 bytes (P2WSH)

  9. def encode(hrp: String, int5s: Array[Int5]): String

    Permalink

    hrp

    human readable prefix

    int5s

    5-bit data

    returns

    hrp + data encoded as a Bech32 string

  10. def encodeWitnessAddress(hrp: String, witnessVersion: Byte, data: ByteVector): String

    Permalink

    encode a bitcoin witness address

    encode a bitcoin witness address

    hrp

    should be "grs" or "tgrs"

    witnessVersion

    witness version (0 to 16, only 0 is currently defined)

    data

    witness program: if version is 0, either 20 bytes (P2WPKH) or 32 bytes (P2WSH)

    returns

    a bech32 encoded witness address

  11. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  15. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. val map: Array[Int5]

    Permalink
  18. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  22. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  23. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped