Package com.codename1.crypto.encoding


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.

  • Classes
    Class
    Description
    Base58 encoding with the Bitcoin alphabet.
    Base58Check: Base58 text of a payload followed by the first four bytes of its double SHA-256 digest.
    Standard Base64 (RFC 4648) with padding: the text form of PSBTs and Solana transactions.
    Bech32 (BIP-173) and Bech32m (BIP-350) encoding, bit regrouping and the SegWit address helpers built on them.
    The result of Bech32.decode(String).
    Hexadecimal encoding and decoding.
    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.
    Recursive Length Prefix encoding as used by Ethereum.