Skip to content
Closed
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
11 changes: 0 additions & 11 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,6 @@ linters:
- linters:
- govet
text: "unsafeptr" # disable flagging unsafeptr usage
# ecdsa.go wraps crypto/ecdsa, whose Sign/Verify still consume the raw
# PrivateKey.D and PublicKey.X/Y fields.
# Go 1.26 deprecated direct access to those fields, but the recommended
# replacement API (ecdsa.ParseRawPrivateKey / ParseUncompressedPublicKey /
# (*PrivateKey).Bytes / (*PublicKey).Bytes) supports only the NIST curves and
# rejects secp256k1, which this package supports via btcec's custom
# elliptic.Curve, so the package has to keep using the low-level fields.
- path: (^|/)ecdsa(_test)?\.go$
linters:
- staticcheck
text: "SA1019"
formatters:
exclusions:
paths:
Expand Down
4 changes: 4 additions & 0 deletions bls12381_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@ func initBLS12381() {
// set a global point to infinity
C.E2_set_infty((*C.E2)(&g2PublicKey.point))
g2PublicKey.isIdentity = true

blsInstance = &blsBLS12381Algo{
algo: BLSBLS12381,
}
}

// String returns a hex-encoded representation of the scalar.
Expand Down
Loading
Loading