Skip to content

Commit

Permalink
Merge pull request #4740 from onflow/tarak/blst-cleanup
Browse files Browse the repository at this point in the history
[Crypto] minor clean up
  • Loading branch information
tarakby authored Sep 21, 2023
2 parents 6fb9707 + 262c3e0 commit 7184bc5
Show file tree
Hide file tree
Showing 12 changed files with 212 additions and 200 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ generate-mocks: install-mock-generators
tidy:
go mod tidy -v
cd integration; go mod tidy -v
cd crypo; go mod tidy -v
cd crypto; go mod tidy -v
cd cmd/testclient; go mod tidy -v
cd insecure; go mod tidy -v
git diff --exit-code
Expand Down
7 changes: 4 additions & 3 deletions crypto/bls.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,12 @@ import (
)

const (
// SignatureLenBLSBLS12381 is the size of a `G_1` element.
// SignatureLenBLSBLS12381 is the serialization size of a `G_1` element.
SignatureLenBLSBLS12381 = g1BytesLen
// PubKeyLenBLSBLS12381 is the size of a `G_2` element.
// PubKeyLenBLSBLS12381 is the serialization size of a `G_2` element.
PubKeyLenBLSBLS12381 = g2BytesLen
// PrKeyLenBLSBLS12381 is the size of a `F_r` element, where `r` is the order of `G_1` and `G_2`.
// PrKeyLenBLSBLS12381 is the serialization size of a `F_r` element,
// where `r` is the order of `G_1` and `G_2`.
PrKeyLenBLSBLS12381 = frBytesLen

// Hash to curve params
Expand Down
Loading

0 comments on commit 7184bc5

Please sign in to comment.