Skip to content
YosoiDocs

ContractIdentity

yosoi.identities.ContractIdentity

class ContractIdentity(str):

The hexadecimal representation of a Rust-computed 32-byte identity.

Source: python/yosoi/identities.py:108

Members below are declared on this class. Inherited Pydantic methods and generated constructor signatures are not expanded.

def as_bytes(self) -> bytes:

Decode the identity into an owned 32-byte value without recomputing it.

Source: python/yosoi/identities.py:127