fairDataSociety / fdp-storage

Serverless Web3 filesystem for organizing users' personal data implemented in Typescript.

Home Page:https://www.npmjs.com/package/@fairdatasociety/fdp-storage

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

EpochID calculation

nugaon opened this issue · comments

commented

getId function in feed/handler.ts seems overcomplicated, you do not need to calculate binary merkle tree to get 32 bytes of topic. you should just hash the topic and the uint64 bytes of epoch ID together. it is slower currently than what has just been mentioned before and also more expensive to elaborate any feed-signature related logic in smart contract later.