IPFSDictChain Module
- class ipfs_dict_chain.IPFSDictChain.IPFSDictChain(cid: str | None = None)[source]
Bases:
IPFSDict
A dictionary-like data structure that stores its state on IPFS and keeps track of changes.
- Parameters:
cid (Optional[str], optional) – The IPFS CID to initialize the dictionary with, defaults to None
- changes() Dict[str, Dict[str, Any]] [source]
Returns a dictionary containing the changes between the current state and the previous state.
- get_previous_cids(max_depth: int | None = None) List[str] [source]
Returns a list of previous CIDs.