You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On RaspberryPi ARM32v7 thread 'main' panicked at 'attempt to shift right with overflow', /home/pi/.cargo/registry/src/github.com-1ecc6299db9ec823/hmac-sha256-0.1.1/src/lib.rs:261:33
#15
Closed
kevingzhang opened this issue
Oct 21, 2019
· 3 comments
I updated hmac-sha256 on my own fork of vrf-rs and it works well on RaspberryPi.
Just online change to use my own hmac-sha256 here kevingzhang@37ae0e0
Once the owner of hmac-sha256 accepted my PR, and update newer version, I would suggest you to update yours in Cargo.toml too , so that other ARM developers can benefit from my fix.
BTW, your VRF did great job. I am wondering if you plan to write a sortition function based on existing VRF as well?
That is precisely our main use case, in which the VRF is utilized for selecting comittees to perform certain tasks. In our case, if the VRF output falls below a given target, the peer is eligible to perform the task.
Here you can find the code in which this verification is made:
I checked the source code.
The bit shift cause problem on ARM CPU, but won't cause any problem on X86 ( I cannot reproduce this bug on my Mac).
I found some others have fix like this:
sile/libflate@337eb3c
From
to
I have not tried this in VRF code, but I would like to ask first
Thanks
The text was updated successfully, but these errors were encountered: