Closed harirubix closed 2 months ago
As an extension of this , we can store the CID digest in db and pick type 1 quorum based on did_digest and txnid to make it more distributed. Eg : We could use a XOR DHT between 2 hashes did_digest and txnid to limit quorum selection within a certain range. Open to other ideas.
Reference : https://github.com/rubixchain/rubixgoplatform/pull/142#issuecomment-2076447722
Explanation:
CID Parsing: The cid.Decode function parses the provided CID string into a cid.Cid object. Extracting Multihash: The Hash() method of the cid.Cid object extracts the underlying multihash. Converting to Hexadecimal: The hex.EncodeToString function converts the binary multihash to a hexadecimal string