Skip to content

Commit

Permalink
change example name and AbelianGroup impl
Browse files Browse the repository at this point in the history
  • Loading branch information
lonerapier committed Jul 31, 2024
1 parent 36c0789 commit e16046a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ ark-std ={ git="https://github.com/arkworks-rs/std/" }
name="aes_chained_cbc"

[[example]]
name="permutation_group"
name="symmetric_group"
File renamed without changes.
2 changes: 1 addition & 1 deletion src/algebra/group/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ pub trait FiniteGroup: Finite + Group {
/// Defines a group with commutative operation: `a·b=b·a`
pub trait AbelianGroup: Group {
/// Returns whether the group is an abelian group
fn is_abelian(a: &Self, b: &Self) -> bool { Self::op(a, b) == Self::op(b, a) }
fn is_abelian(a: &Self, b: &Self) { assert!(Self::op(a, b) == Self::op(b, a)) }
}

#[const_trait]
Expand Down

0 comments on commit e16046a

Please sign in to comment.