Skip to main content

entity.record.record

Record Objects

class Record()

Represents a record with payload, hash, and configuration data.

__init__

def __init__(payload: bytes, hash: str, config_data: ConfigData) -> None

Constructs a Record object with the specified parameters.

get_hash

def get_hash() -> str

Retrieves the hash of the record.

get_payload

def get_payload() -> bytes

Retrieves the payload of the record.

retrieve

def retrieve() -> bytes

Returns the payload of the record.

set_proof

def set_proof(proof: Proof)

Sets the proof for a record.