eth / net.consensys.cava.eth / Hash

Hash

class Hash (source)

An Ethereum hash.

Functions

equals

fun equals(other: Any?): Boolean

fromBytes

static fun fromBytes(bytes: Bytes): Hash

Create a Hash from Bytes.

The hash must be exactly 32 bytes.

static fun fromBytes(bytes: Bytes32): Hash

Create a Hash from Bytes32.

fromHexString

static fun fromHexString(str: String): Hash

Parse a hexadecimal string into a Hash.

hash

static fun hash(value: Bytes): Hash

hashCode

fun hashCode(): Int

toBytes

fun toBytes(): Bytes

toHexString

fun toHexString(): String

toString

fun toString(): String