mirror of
https://github.com/arnaucube/ark-curves-cherry-picked.git
synced 2026-01-10 07:51:31 +01:00
Add Pallas and Vesta curves (#21)
Co-authored-by: Ying Tong Lai <yingtong@electriccoin.co> Co-authored-by: Daira Hopwood <daira@jacaranda.org> Co-authored-by: Pratyush Mishra <pratyushmishra@berkeley.edu> Co-authored-by: therealyingtong <yingtong@z.cash>
This commit is contained in:
@@ -417,20 +417,14 @@ pub fn field_serialization_test<F: Field>(buf_size: usize) {
|
||||
#[derive(Default, Clone, Copy, Debug)]
|
||||
struct DummyFlags;
|
||||
impl Flags for DummyFlags {
|
||||
const BIT_SIZE: usize = 200;
|
||||
|
||||
fn u8_bitmask(&self) -> u8 {
|
||||
0
|
||||
}
|
||||
|
||||
fn from_u8(_value: u8) -> Self {
|
||||
DummyFlags
|
||||
}
|
||||
|
||||
fn from_u8_remove_flags(_value: &mut u8) -> Self {
|
||||
DummyFlags
|
||||
}
|
||||
|
||||
fn len() -> usize {
|
||||
200
|
||||
fn from_u8(_value: u8) -> Option<Self> {
|
||||
Some(DummyFlags)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user