Skip to content

Commit

Permalink
fixup! bindings/rust: add MultiScalar trait.
Browse files Browse the repository at this point in the history
  • Loading branch information
dot-asm committed May 29, 2024
1 parent cf50bb9 commit 7de394e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bindings/rust/src/pippenger-no_std.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,12 @@ macro_rules! pippenger_mult_impl {
ret
}

#[inline]
pub fn mult(&self, scalars: &[u8], nbits: usize) -> $point {
self.as_slice().mult(scalars, nbits)
}

#[inline]
pub fn add(&self) -> $point {
self.as_slice().add()
}
Expand Down
2 changes: 2 additions & 0 deletions bindings/rust/src/pippenger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,12 @@ macro_rules! pippenger_mult_impl {
ret
}

#[inline]
pub fn mult(&self, scalars: &[u8], nbits: usize) -> $point {
self.as_slice().mult(scalars, nbits)
}

#[inline]
pub fn add(&self) -> $point {
self.as_slice().add()
}
Expand Down

0 comments on commit 7de394e

Please sign in to comment.