omershlo / simple-bulletproof-js

javascript code for one-round single bulletproof
19 stars 6 forks source link

maximum power of 2^32 supported #6

Open pranavkirtani88 opened 5 years ago

pranavkirtani88 commented 5 years ago

I am trying to check if two dates lie in the same range.To do so I am converting date to time in milliseconds.However this is larger than the 2^32 limit.However if I set upper limit to the power of 64 I am not able to check the ranges correctly.

omershlo commented 5 years ago

if you convert to seconds instead it helps? I don't remember where the 2^32 constraint is coming from but I am sure it can be changed

pranavkirtani88 commented 5 years ago

It helps if I convert to hours.