Skip to content

Commit f370035

Browse files
MariusVanDerWijdenlightclient
authored andcommitted
update bn256 -> bn254
1 parent 3d26ad1 commit f370035

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

core/vm/contracts.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ func (c *bn256AddIstanbul) Run(input []byte) ([]byte, error) {
614614
}
615615

616616
func (c *bn256AddIstanbul) Name() string {
617-
return "BN256_ADD"
617+
return "BN254_ADD"
618618
}
619619

620620
// bn256AddByzantium implements a native elliptic curve point addition
@@ -631,7 +631,7 @@ func (c *bn256AddByzantium) Run(input []byte) ([]byte, error) {
631631
}
632632

633633
func (c *bn256AddByzantium) Name() string {
634-
return "BN256_ADD"
634+
return "BN254_ADD"
635635
}
636636

637637
// runBn256ScalarMul implements the Bn256ScalarMul precompile, referenced by
@@ -660,7 +660,7 @@ func (c *bn256ScalarMulIstanbul) Run(input []byte) ([]byte, error) {
660660
}
661661

662662
func (c *bn256ScalarMulIstanbul) Name() string {
663-
return "BN256_MUL"
663+
return "BN254_MUL"
664664
}
665665

666666
// bn256ScalarMulByzantium implements a native elliptic curve scalar
@@ -677,7 +677,7 @@ func (c *bn256ScalarMulByzantium) Run(input []byte) ([]byte, error) {
677677
}
678678

679679
func (c *bn256ScalarMulByzantium) Name() string {
680-
return "BN256_MUL"
680+
return "BN254_MUL"
681681
}
682682

683683
var (
@@ -736,7 +736,7 @@ func (c *bn256PairingIstanbul) Run(input []byte) ([]byte, error) {
736736
}
737737

738738
func (c *bn256PairingIstanbul) Name() string {
739-
return "BN256_PAIRING"
739+
return "BN254_PAIRING"
740740
}
741741

742742
// bn256PairingByzantium implements a pairing pre-compile for the bn256 curve
@@ -753,7 +753,7 @@ func (c *bn256PairingByzantium) Run(input []byte) ([]byte, error) {
753753
}
754754

755755
func (c *bn256PairingByzantium) Name() string {
756-
return "BN256_PAIRING"
756+
return "BN254_PAIRING"
757757
}
758758

759759
type blake2F struct{}

0 commit comments

Comments
 (0)