public final class Numeric extends Object
Implementation as per https://github.com/ethereum/wiki/wiki/JSON-RPC#hex-value-encoding
public static String encodeQuantity(BigInteger value)
public static BigInteger decodeQuantity(String value)
public static boolean containsHexPrefix(String input)
public static BigInteger toBigInt(byte[] value, int offset, int length)
public static BigInteger toBigInt(byte[] value)
public static BigInteger toBigInt(String hexValue)
public static BigInteger toBigIntNoPrefix(String hexValue)
public static String toHexStringWithPrefix(BigInteger value)
public static String toHexStringNoPrefix(BigInteger value)
public static String toHexStringNoPrefix(byte[] input)
public static String toHexStringWithPrefixZeroPadded(BigInteger value, int size)
public static String toHexStringWithPrefixSafe(BigInteger value)
public static String toHexStringNoPrefixZeroPadded(BigInteger value, int size)
public static byte[] toBytesPadded(BigInteger value, int length)
public static byte[] hexStringToByteArray(String input)
public static String toHexString(byte[] input, int offset, int length, boolean withPrefix)
public static String toHexString(byte[] input)
public static byte asByte(int m,
int n)
public static boolean isIntegerValue(BigDecimal value)
Copyright © 2021. All rights reserved.