mirror of
https://github.com/saymrwulf/risc0-curve25519-dalek-source.git
synced 2026-09-04 20:03:40 +00:00
Add minus_one for radix51
This commit is contained in:
parent
3eab4acbd8
commit
f16f5d1e73
1 changed files with 4 additions and 0 deletions
|
|
@ -373,6 +373,10 @@ impl FieldElement {
|
|||
pub fn minus_one() -> FieldElement {
|
||||
FieldElement([-1, 0, 0, 0, 0, 0, 0, 0, 0, 0 ])
|
||||
}
|
||||
#[cfg(feature="radix_51")]
|
||||
pub fn minus_one() -> FieldElement {
|
||||
FieldElement([2251799813685228, 2251799813685247, 2251799813685247, 2251799813685247, 2251799813685247])
|
||||
}
|
||||
|
||||
#[cfg(feature="radix_25_5")]
|
||||
fn combine_coeffs(input: &[i64;10]) -> FieldElement { //FeCombine
|
||||
|
|
|
|||
Loading…
Reference in a new issue