public class ByteUtils extends Object
Constructor and Description |
---|
ByteUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
hash(byte[] bytes) |
static void |
putAsset(ByteBuffer buffer,
String assetId) |
static void |
putBytes(ByteBuffer buffer,
byte[] bytes) |
static String |
putRecipient(ByteBuffer buffer,
byte chainId,
String recipient) |
static void |
putScript(ByteBuffer buffer,
String script) |
static void |
putString(ByteBuffer buffer,
String s) |
static String |
sign(PrivateKeyAccount account,
ByteBuffer buffer) |
static byte[] |
toBytes(ByteBuffer buffer) |
public static final int KBYTE
public static final Charset UTF8
public static byte[] toBytes(ByteBuffer buffer)
public static void putAsset(ByteBuffer buffer, String assetId)
public static void putString(ByteBuffer buffer, String s)
public static void putScript(ByteBuffer buffer, String script)
public static void putBytes(ByteBuffer buffer, byte[] bytes)
public static String putRecipient(ByteBuffer buffer, byte chainId, String recipient)
public static String hash(byte[] bytes)
public static String sign(PrivateKeyAccount account, ByteBuffer buffer)
Copyright © 2019. All rights reserved.