Package org.bitcoinj.base
Class Bech32
- java.lang.Object
-
- org.bitcoinj.base.Bech32
-
public class Bech32 extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Bech32.Bech32Data
static class
Bech32.Encoding
-
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.
-
-
-
Method Detail
-
encode
public static java.lang.String encode(Bech32.Bech32Data bech32)
Encode a Bech32 string.
-
encode
public static java.lang.String encode(Bech32.Encoding encoding, java.lang.String hrp, byte[] values)
Encode a Bech32 string.
-
decode
public static Bech32.Bech32Data decode(java.lang.String str) throws AddressFormatException
Decode a Bech32 string.- Throws:
AddressFormatException
-
-