Nanak Nihal Khalsa
Nanak Nihal Khalsa
[I made a contract like this which doesn't use ERC20Snapshot](https://github.com/nanaknihal/openzeppelin-contracts/blob/master/contracts/ERC20Dividends.sol) so is gas-efficient upon transfer. It has a couple tradeoffs which do not matter for my, or likely many other,...
It would also be great to support bytes32. Currently, bytes32 doesn't work for me in `console.logBytes`, nor `console.log` In the meantime, this worked: ``` function bytes32ToBytes(bytes32 b_) private pure returns...
> That's a `parseInt()` behavior, unrelated to Buffer: `parseInt(0x61, 16) === 0x97`. That's approximately what parseInt does, which is fine. The problem seems to be from Buffer, not parseInt: `Buffer.from("abcde").map(x=>parseInt(x,16))`...
Yes. Although it oddly wraps at 100 instead of 256. I think Buffer is treating the result of parseInt as 0x100 instead of 100. I don't know the exact interface...
Update: this was fixed by implementing the `Zero` and `One` traits for `Fr`. `Fr` just did not have the traits. It would be great to show this in the compiler...
Finally done in https://github.com/arnaucube/babyjubjub-rs/pull/8 (except the `mul_scalar` negative input check). Sorry for the delay -- I had changed the blake hash function because I was having trouble compiling on my...
Awesome. Incidentally, I've been working on it a bit today so there is a new push with some pretty minor changes