object Bech32 extends Bech32

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

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. val charset: Vector[Char]
  6. val charsetReversed: Vector[Int]

    The Bech32 character set for decoding.

    The Bech32 character set for decoding.

    See also

    https://github.com/sipa/bech32/blob/master/ref/c%2B%2B/bech32.cpp#L33

  7. def checkDataValidity(data: String): Try[Vector[UInt5]]

    Takes in the data portion of a bech32 address and decodes it to a byte array It also checks the validity of the data portion according to BIP173

    Takes in the data portion of a bech32 address and decodes it to a byte array It also checks the validity of the data portion according to BIP173

    Definition Classes
    Bech32
  8. def checkHrpValidity[T <: Bech32HumanReadablePart](hrp: String, factory: StringFactory[T]): Try[T]

    Checks the validity of the HRP against bech32 and the given StringFactory

    Checks the validity of the HRP against bech32 and the given StringFactory

    Definition Classes
    Bech32
  9. def checkHrpValidity(hrp: String): Try[String]

    Checks if the possible human readable part follows BIP173 rules

    Checks if the possible human readable part follows BIP173 rules

    Definition Classes
    Bech32
  10. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  11. def createChecksum(u5s: Vector[UInt5], encoding: Bech32Encoding): Vector[UInt5]

    Creates a checksum for the given byte vector according to BIP173

    Creates a checksum for the given byte vector according to BIP173

    Definition Classes
    Bech32
  12. def decodeStringToU5s(str: String): Vector[UInt5]

    Assumes we are given a valid bech32 string

    Assumes we are given a valid bech32 string

    Definition Classes
    Bech32
  13. def encode5bitToString(b: Vector[UInt5]): String

    Takes a bech32 5bit array and encodes it to a string

    Takes a bech32 5bit array and encodes it to a string

    Definition Classes
    Bech32
  14. def encode8bitToString(bytes: Vector[UInt8]): String

    Converts a byte vector to 5bit vector and then serializes to bech32

    Converts a byte vector to 5bit vector and then serializes to bech32

    Definition Classes
    Bech32
  15. def encode8bitToString(bytes: ByteVector): String

    Converts a byte vector to 5bit vector and then serializes to bech32

    Converts a byte vector to 5bit vector and then serializes to bech32

    Definition Classes
    Bech32
  16. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  18. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  19. def from5bitTo8bit(b: Vector[UInt5], pad: Boolean = false): Vector[UInt8]

    Decodes a byte array from 5bits to base 8bits

    Decodes a byte array from 5bits to base 8bits

    Definition Classes
    Bech32
  20. def from8bitTo5bit(u8s: Vector[UInt8]): Vector[UInt5]

    Converts a byte array from 8bits to base 5 bits

    Converts a byte array from 8bits to base 5 bits

    Definition Classes
    Bech32
  21. def from8bitTo5bit(bytes: ByteVector): Vector[UInt5]

    Converts a byte vector from 8bits to 5bits

    Converts a byte vector from 8bits to 5bits

    Definition Classes
    Bech32
  22. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  23. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  24. def hrpExpand(string: String): Vector[UInt5]

    Expands the human readable part of a bech32 address as per BIP173

    Expands the human readable part of a bech32 address as per BIP173

    Definition Classes
    Bech32
  25. def isInHrpRange(char: Char): Boolean
    Definition Classes
    Bech32
  26. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  27. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  28. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  29. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  30. def polyMod(bytes: Vector[UInt5]): Long
    Definition Classes
    Bech32
  31. val separator: Char

    Separator used to separate the hrp & data parts of a bech32 addr

  32. def splitToHrpAndData[T <: Bech32HumanReadablePart](bech32: String, encoding: Bech32Encoding, factory: StringFactory[T]): Try[(T, Vector[UInt5])]
    Definition Classes
    Bech32
  33. def splitToHrpAndData(bech32: String, encoding: Bech32Encoding): Try[(String, Vector[UInt5])]

    Validate a Bech32 string, and determine HRP and data.

    Validate a Bech32 string, and determine HRP and data. Fails if HRP is not LN or BTC compatible.

    Definition Classes
    Bech32
    See also

    Mimics this function by Sipa

  34. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  35. def toString(): String
    Definition Classes
    AnyRef → Any
  36. def verifyChecksum(hrp: Seq[UInt5], u5s: Seq[UInt5], encoding: Bech32Encoding): Boolean
    Definition Classes
    Bech32
  37. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  38. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  39. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Bech32

Inherited from AnyRef

Inherited from Any

Ungrouped