Closed SgtPooki closed 3 months ago
Thank you for submitting your first issue to this repository! A maintainer will be here shortly to triage and review. In the meantime, please double-check that you have provided all the necessary information to make this process easy! Any information that can help save additional round trips is useful! We currently aim to give initial feedback within two business days. If this does not happen, feel free to leave a comment. Please keep an eye on how this issue will be labeled, as labels give an overview of priorities, assignments and additional actions requested by the maintainers:
Finally, remember to use https://discuss.ipfs.io if you just need general support.
Nanoseconds are calculated incorrectly. See https://github.com/ipfs/helia-verified-fetch/pull/19#discussion_r1530216696 for more details. Basically,
Some proofs (copy and paste into dev console):
1e9
, or "One billionth of one second".BigInt(1)/*<s>*/ * BigInt(1e9)/*<ns>*/ === (1000000000n)/*<ns>*/ /* 1,000,000,000/*<ns>*/
1000000000/*<ns>*/ * 1e-9/*<ns-to-s>*/ === 1
BigInt(1)/*<s>*/ * BigInt(1e6)/*<ms>*/ === 1000000n/*<ms>*/ /* === 1,000,000/*<ms>*/
1000000/*<ms>*/ * 1e-6/*<ms-to-s>*/ === 1
1e6
or "One millionth of one millisecond"BigInt(1)/*<ms>*/ * BigInt(1e6)/*<ns>*/ === 1000000n/*<ns>*/ /* === 1,000,000/*<ms>*/
1000000/*<ns>*/ * 1e-6/*<ns-to-ms>*/ === 1
https://github.com/ipfs/js-ipns/blob/16e0e10682fa9a663e0bb493a44d3e99a5200944/src/index.ts#L171 creates lifeTimeNs as:
references: