Class Bech32


  • public class Bech32
    extends java.lang.Object
    Implementation of the Bech32 encoding.

    See BIP350 and BIP173 for details.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Bech32.Bech32Data
      Bech32 decoded data in 5-bit byte format.
      static class  Bech32.Encoding
      Enumeration of known Bech32 encoding format types: Bech32 and Bech32m.
    • Constructor Summary

      Constructors 
      Constructor Description
      Bech32()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Bech32.Bech32Data decode​(java.lang.String str)
      Decode a Bech32 string.
      static java.lang.String encode​(Bech32.Bech32Data bech32)
      Encode a Bech32 string.
      static java.lang.String encode​(Bech32.Encoding encoding, java.lang.String hrp, byte[] values)
      Encode a Bech32 string.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait