Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace embedded Groups with type assertions #550

Merged
merged 2 commits into from
Sep 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion pairing/bls12381/circl/adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ import (
// used as a point from the group G1.
type SuiteBLS12381 struct {
Suite
kyber.Group
}

var _ kyber.Group = (*SuiteBLS12381)(nil)

// NewSuiteBLS12381 makes a new BN256 suite
func NewSuiteBLS12381() *SuiteBLS12381 {
return &SuiteBLS12381{}
Expand Down
3 changes: 2 additions & 1 deletion pairing/bls12381/kilic/adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ import (
// used as a point from the group G1.
type SuiteBLS12381 struct {
Suite
kyber.Group
}

var _ kyber.Group = (*SuiteBLS12381)(nil)

// NewSuiteBLS12381 makes a new BN256 suite
func NewSuiteBLS12381() *SuiteBLS12381 {
return &SuiteBLS12381{}
Expand Down
3 changes: 2 additions & 1 deletion pairing/bn254/adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ import (
// used as a point from the group G1.
type SuiteBn254 struct {
*Suite
kyber.Group
}

var _ kyber.Group = (*SuiteBn254)(nil)

// NewSuiteBn254 makes a new BN254 suite
func NewSuiteBn254() *SuiteBn254 {
return &SuiteBn254{
Expand Down
3 changes: 2 additions & 1 deletion pairing/bn256/adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ import (
// used as a point from the group G1.
type SuiteBn256 struct {
*Suite
kyber.Group
}

var _ kyber.Group = (*SuiteBn256)(nil)

// NewSuiteBn256 makes a new BN256 suite
func NewSuiteBn256() *SuiteBn256 {
return &SuiteBn256{
Expand Down
Loading