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

[Crypto] BLST pairing #4377

Merged
merged 9 commits into from
May 24, 2023
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
7 changes: 0 additions & 7 deletions crypto/bls.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,6 @@ var expandMsgOutput = int(C.get_mapToG1_input_len())

// blsBLS12381Algo, embeds SignAlgo
type blsBLS12381Algo struct {
// points to Relic context of BLS12-381 with all the parameters
context ctx
// the signing algo and parameters
algo SigningAlgorithm
}
Expand Down Expand Up @@ -535,11 +533,6 @@ var prKeyLengthBLSBLS12381 = int(C.get_sk_len())

// init sets the context of BLS12-381 curve
func (a *blsBLS12381Algo) init() error {
// initializes relic context and sets the B12_381 parameters
if err := a.context.initContext(); err != nil {
return err
}

// compare the Go and C layer constants as a sanity check
if signatureLengthBLSBLS12381 != SignatureLenBLSBLS12381 ||
pubKeyLengthBLSBLS12381 != PubKeyLenBLSBLS12381 ||
Expand Down
Loading