Package ch.bitagent.bitcoin.lib.helper
Class Helper
- java.lang.Object
-
- ch.bitagent.bitcoin.lib.helper.Helper
-
public class Helper extends Object
Helper class.
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static StringbtcToSat(double f)btcToSat.static Stringlog(String string)Deprecated.temp use onlystatic doublelogWithBase(double value, double base)logWithBase.static StringmaskString(String str, int len)maskString.static byte[]randomBytes(int length)randomBytes.static Stringzfill64(String bytes)zfill64.
-
-
-
Method Detail
-
randomBytes
public static byte[] randomBytes(int length)
randomBytes.
- Parameters:
length- a int- Returns:
- an array of
byteobjects
-
btcToSat
public static String btcToSat(double f)
btcToSat.
- Parameters:
f- a double- Returns:
- a
Stringobject
-
logWithBase
public static double logWithBase(double value, double base)logWithBase.
- Parameters:
value- a doublebase- a double- Returns:
- a double
-
-