Skip to content

Commit 084f638

Browse files
authored
Merge pull request #440 from OffchainLabs/use-cloudflare-bn256
use cloudflare bn256 implementation also for wasm build
2 parents 5657139 + 009cc4b commit 084f638

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

crypto/bn256/bn256_fast.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
// Use of this source code is governed by a BSD-style license that can be found
33
// in the LICENSE file.
44

5-
//go:build amd64 || arm64
6-
// +build amd64 arm64
5+
//go:build amd64 || arm64 || wasm
6+
// +build amd64 arm64 wasm
77

88
// Package bn256 implements the Optimal Ate pairing over a 256-bit Barreto-Naehrig curve.
99
package bn256

crypto/bn256/bn256_slow.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
// Use of this source code is governed by a BSD-style license that can be found
33
// in the LICENSE file.
44

5-
//go:build !amd64 && !arm64
6-
// +build !amd64,!arm64
5+
//go:build !amd64 && !arm64 && !wasm
6+
// +build !amd64,!arm64,!wasm
77

88
// Package bn256 implements the Optimal Ate pairing over a 256-bit Barreto-Naehrig curve.
99
package bn256

0 commit comments

Comments
 (0)