Client and backend. Every class listed here is shared: the same code is compiled into your app and into your server.
package com.codename1.crypto.encoding
Text and binary encodings used by blockchain and wallet code: hexadecimal, Base58 and Base58Check, Bech32 and Bech32m with SegWit addresses, and Ethereum’s Recursive Length Prefix serialization.
Types
class Base58 | Base58 encoding with the Bitcoin alphabet. |
class Base58Check | Base58Check: Base58 text of a payload followed by the first four bytes of its double SHA-256 digest. |
class Base64 | Standard Base64 (RFC 4648) with padding: the text form of PSBTs and Solana transactions. |
class Bech32 | Bech32 (BIP-173) and Bech32m (BIP-350) encoding, bit regrouping and the SegWit address helpers built on them. |
class Hex | Hexadecimal encoding and decoding. |
class Json | A small JSON reader and writer shared by the device and the server, for the JSON-RPC framing and EIP-712 documents the crypto packages exchange. |
class Rlp | Recursive Length Prefix encoding as used by Ethereum. |