Nanak Nihal Khalsa

Results 7 issues of Nanak Nihal Khalsa

I made a few new utils for type casts and parsing strings (represented as u8 arrays). I've tested them locally but was having difficulty adding and running tests in `zokrates_stdlib/tests/tests/utils`....

Running v17.3.0, `Buffer.from("abcde")` returns `` as expected `Buffer.from("abcde").map(x=>parseInt(x,16))` returns `` This is probably not the intended behavior of `Buffer`

Hi, It seems matrix multiplcation only works over standard types, e.g. u32, u64... The following code compiles: ``` let m1 = Matrix2x4::::zeros(); let m2 = Matrix4x2::::zeros(); let should_be_zeros = m1...

I see it is possible to instantiate a curve by with an already-supported parameters, e.g. `new EC('secp256k1')` Is there a way to use custom parameters? I would be interested in...

I merged the changes mentioned in https://github.com/arnaucube/babyjubjub-rs/issues/7 for more `Point` functions, ElGamal encryption/decryption, DLEQ proofs, (unoptimized) serialization/deserialization, a new `Fl` struct, and a bug fix. Note: There is one planned...

I've been using this library for a couple projects and have added various features and bug fixes in a fork: https://github.com/nanaknihal/babyjubjub-rs If you're interested, I will make a PR. First...

``` xor(Buffer.from('7f5022b7e361a9ef34f2792b045bf413a985f8caf7978e67027dbb01b137b67d', 'hex'), Buffer.from('C8834C1FcF0Df6623Fc8C8eD25064A4148D99388', 'hex')) ``` gives the wrong value. The answer should be ```7f5022b7e361a9ef34f2792bccd8b80c66880ea8c85f468a277bf140f9ee25f5```, but it gives ```b7d36ea82c6c5f8d0b3ab1c6215dbe52e15c6b42f7978e67027dbb01b137b67d``` The reason is that it doesn't zero pad it from the...