tuweni / org.apache.tuweni.eth / Hash

Hash

class Hash : DelegatingBytes32 (source)

An Ethereum hash.

Functions

fromBytes

Create a Hash from Bytes.

static fun fromBytes(bytes: Bytes!): Hash!

Create a Hash from Bytes32.

static fun fromBytes(bytes: Bytes32!): Hash!

fromHexString

Parse a hexadecimal string into a Hash.

static fun fromHexString(str: String!): Hash!

hash

static fun hash(value: Bytes!): Hash!