Skip to content

Commit 25c0e49

Browse files
update bn256 -> bn254
1 parent 610aca1 commit 25c0e49

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
@@ -606,7 +606,7 @@ func (c *bn256AddIstanbul) Run(input []byte) ([]byte, error) {
606606
}
607607

608608
func (c *bn256AddIstanbul) Name() string {
609-
return "BN256_ADD"
609+
return "BN254_ADD"
610610
}
611611

612612
// bn256AddByzantium implements a native elliptic curve point addition
@@ -623,7 +623,7 @@ func (c *bn256AddByzantium) Run(input []byte) ([]byte, error) {
623623
}
624624

625625
func (c *bn256AddByzantium) Name() string {
626-
return "BN256_ADD"
626+
return "BN254_ADD"
627627
}
628628

629629
// runBn256ScalarMul implements the Bn256ScalarMul precompile, referenced by
@@ -652,7 +652,7 @@ func (c *bn256ScalarMulIstanbul) Run(input []byte) ([]byte, error) {
652652
}
653653

654654
func (c *bn256ScalarMulIstanbul) Name() string {
655-
return "BN256_MUL"
655+
return "BN254_MUL"
656656
}
657657

658658
// bn256ScalarMulByzantium implements a native elliptic curve scalar
@@ -669,7 +669,7 @@ func (c *bn256ScalarMulByzantium) Run(input []byte) ([]byte, error) {
669669
}
670670

671671
func (c *bn256ScalarMulByzantium) Name() string {
672-
return "BN256_MUL"
672+
return "BN254_MUL"
673673
}
674674

675675
var (
@@ -728,7 +728,7 @@ func (c *bn256PairingIstanbul) Run(input []byte) ([]byte, error) {
728728
}
729729

730730
func (c *bn256PairingIstanbul) Name() string {
731-
return "BN256_PAIRING"
731+
return "BN254_PAIRING"
732732
}
733733

734734
// bn256PairingByzantium implements a pairing pre-compile for the bn256 curve
@@ -745,7 +745,7 @@ func (c *bn256PairingByzantium) Run(input []byte) ([]byte, error) {
745745
}
746746

747747
func (c *bn256PairingByzantium) Name() string {
748-
return "BN256_PAIRING"
748+
return "BN254_PAIRING"
749749
}
750750

751751
type blake2F struct{}

0 commit comments

Comments
 (0)