Skip to main content

client.integrity

IntegrityClient Objects

class IntegrityClient()

Provides functionality to interact with the Bloock Integrity service.

__init__

def __init__(config_data=None) -> None

Creates a new IntegrityClient with the given configuration.

send_records

def send_records(records: List[Record]) -> List[RecordReceipt]

Sends records to the Bloock Integrity service for certification.

get_anchor

def get_anchor(anchor_id: int) -> Anchor

Gets an anchor by its ID from the Bloock Integrity service.

wait_anchor

def wait_anchor(anchor_id: int, timeout=120000) -> Anchor

Waits for the completion of an anchor on the Bloock Integrity service.

get_proof

def get_proof(records: List[Record]) -> Proof

Waits for the completion of an anchor on the Bloock Integrity service.

verify_proof

def verify_proof(proof: Proof) -> str

Gets a proof for a set of records from the Bloock Integrity service.

verify_records

def verify_records(records: List[Record],
network: Optional[Network] = None) -> int

Verifies the integrity of a set of records.

validate_root

def validate_root(root: str, network: Network) -> int

Validates the integrity of a merkle root proof on blockchain.