Skip to content

Commit 843f4f7

Browse files
authored
removes p256verify for madhugiri (#70)
1 parent f91ae47 commit 843f4f7

File tree

1 file changed

+17
-18
lines changed

1 file changed

+17
-18
lines changed

core/vm/contracts.go

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -221,24 +221,23 @@ var PrecompiledContractsOsaka = map[common.Address]PrecompiledContract{
221221
}
222222

223223
var PrecompiledContractsMadhugiri = map[common.Address]PrecompiledContract{
224-
common.BytesToAddress([]byte{0x01}): &ecrecover{},
225-
common.BytesToAddress([]byte{0x02}): &sha256hash{},
226-
common.BytesToAddress([]byte{0x03}): &ripemd160hash{},
227-
common.BytesToAddress([]byte{0x04}): &dataCopy{},
228-
common.BytesToAddress([]byte{0x05}): &bigModExp{madhugiri: true},
229-
common.BytesToAddress([]byte{0x06}): &bn254AddIstanbul{},
230-
common.BytesToAddress([]byte{0x07}): &bn254ScalarMulIstanbul{},
231-
common.BytesToAddress([]byte{0x08}): &bn254PairingIstanbul{},
232-
common.BytesToAddress([]byte{0x09}): &blake2F{},
233-
common.BytesToAddress([]byte{0x0a}): &pointEvaluation{},
234-
common.BytesToAddress([]byte{0x0b}): &bls12381G1Add{},
235-
common.BytesToAddress([]byte{0x0c}): &bls12381G1MultiExp{},
236-
common.BytesToAddress([]byte{0x0d}): &bls12381G2Add{},
237-
common.BytesToAddress([]byte{0x0e}): &bls12381G2MultiExp{},
238-
common.BytesToAddress([]byte{0x0f}): &bls12381Pairing{},
239-
common.BytesToAddress([]byte{0x10}): &bls12381MapFpToG1{},
240-
common.BytesToAddress([]byte{0x11}): &bls12381MapFp2ToG2{},
241-
common.BytesToAddress([]byte{0x01, 0x00}): &p256Verify{},
224+
common.BytesToAddress([]byte{0x01}): &ecrecover{},
225+
common.BytesToAddress([]byte{0x02}): &sha256hash{},
226+
common.BytesToAddress([]byte{0x03}): &ripemd160hash{},
227+
common.BytesToAddress([]byte{0x04}): &dataCopy{},
228+
common.BytesToAddress([]byte{0x05}): &bigModExp{madhugiri: true},
229+
common.BytesToAddress([]byte{0x06}): &bn254AddIstanbul{},
230+
common.BytesToAddress([]byte{0x07}): &bn254ScalarMulIstanbul{},
231+
common.BytesToAddress([]byte{0x08}): &bn254PairingIstanbul{},
232+
common.BytesToAddress([]byte{0x09}): &blake2F{},
233+
common.BytesToAddress([]byte{0x0a}): &pointEvaluation{},
234+
common.BytesToAddress([]byte{0x0b}): &bls12381G1Add{},
235+
common.BytesToAddress([]byte{0x0c}): &bls12381G1MultiExp{},
236+
common.BytesToAddress([]byte{0x0d}): &bls12381G2Add{},
237+
common.BytesToAddress([]byte{0x0e}): &bls12381G2MultiExp{},
238+
common.BytesToAddress([]byte{0x0f}): &bls12381Pairing{},
239+
common.BytesToAddress([]byte{0x10}): &bls12381MapFpToG1{},
240+
common.BytesToAddress([]byte{0x11}): &bls12381MapFp2ToG2{},
242241
}
243242

244243
var (

0 commit comments

Comments
 (0)