merkle

class MerklePathItem
direction

the direction.

Type:

Direction

static from_bytes(data)

Deserialize from bytes.

Parameters:

data (bytes) – the serialized object.

Returns: the deserialized object.

static from_json(raw)

Build from a JSON string.

hash

the hash field of the item.

Type:

CryptoHash

to_json()

Convert to a JSON string.

class Direction
Left = Direction.Left
Right = Direction.Right