Skip to content

Commit 008e092

Browse files
author
Tural Devrishev
committed
core: add Ethereum-compatible aliases for BLS12-381
Close #4041. Signed-off-by: Tural Devrishev <tural@nspcc.ru>
1 parent 9e9e8e1 commit 008e092

8 files changed

Lines changed: 683 additions & 2 deletions

File tree

go.mod

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,5 @@ require (
7272
google.golang.org/grpc v1.75.1 // indirect
7373
google.golang.org/protobuf v1.36.9 // indirect
7474
)
75+
76+
replace github.com/nspcc-dev/neo-go/pkg/interop => ./pkg/interop

pkg/compiler/native_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ func TestNativeHelpersCompile(t *testing.T) {
251251
{"bls12381Mul", []string{"crypto.Bls12381Point{}", "[]byte{1, 2, 3}", "true"}},
252252
{"bls12381Pairing", []string{"crypto.Bls12381Point{}", "crypto.Bls12381Point{}"}},
253253
{"keccak256", []string{"[]byte{1, 2, 3}"}},
254+
{"bls12381MultiExp", []string{"[]crypto.Bls12381Pair{}"}},
254255
})
255256
runNativeTestCases(t, *cs.ByName(nativenames.StdLib).Metadata(), "std", []nativeTestCase{
256257
{"serialize", []string{"[]byte{1, 2, 3}"}},

pkg/config/hardfork.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ const (
5454
// https://github.com/neo-project/neo/pull/4147,
5555
// https://github.com/neo-project/neo/pull/4150), #4057 (ported from
5656
// https://github.com/neo-project/neo/pull/4278).
57+
// https://github.com/neo-project/neo/pull/4150), #4050 (ported from
58+
// https://github.com/neo-project/neo/pull/4186).
5759
HFFaun // Faun
5860
// hfLast denotes the end of hardforks enum. Consider adding new hardforks
5961
// before hfLast.

0 commit comments

Comments
 (0)