rubixchain / rubixgoplatform

GNU General Public License v3.0
8 stars 17 forks source link

parse did to get cid digest and use this to calc lastchar #177

Closed harirubix closed 2 months ago

harirubix commented 2 months ago

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

harirubix commented 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.