algebra icon indicating copy to clipboard operation
algebra copied to clipboard

`ark-vesta` uses a different point encoding than `pasta_curves`

Open mmaker opened this issue 6 months ago • 2 comments

This test at line 92:

    assert_eq!(&ark_generator_bytes, &group_generator_bytes.as_ref());

fails with:


---- plugins::tests::test_compatible_pallas stdout ----
thread 'plugins::tests::test_compatible_pallas' panicked at src/plugins/tests.rs:92:5:
assertion `left == right` failed
  left: [0, 0, 0, 0, 33, 235, 70, 140, 221, 168, 148, 9, 252, 152, 70, 34, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 64, 0]
 right: [0, 0, 0, 0, 33, 235, 70, 140, 221, 168, 148, 9, 252, 152, 70, 34, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 64]

mmaker avatar Jan 31 '24 09:01 mmaker

Doesn't https://github.com/arkworks-rs/algebra/pull/639 fix it?

slumber avatar Jan 31 '24 10:01 slumber

I think the issue that you're point out concerns representation in memory, but here I'm trying to make sure that the byte representation is identical!

it seems the reason is similar, but over the serialize implementation.

mmaker avatar Jan 31 '24 13:01 mmaker