Skip to content

Commit 8925e7a

Browse files
committed
add p256verify precompile to dev genesis
1 parent 304d0c5 commit 8925e7a

File tree

1 file changed

+18
-17
lines changed

1 file changed

+18
-17
lines changed

core/genesis.go

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -669,23 +669,24 @@ func DeveloperGenesisBlock(gasLimit uint64, faucet *common.Address) *Genesis {
669669
BaseFee: big.NewInt(params.InitialBaseFee),
670670
Difficulty: big.NewInt(0),
671671
Alloc: map[common.Address]types.Account{
672-
common.BytesToAddress([]byte{0x01}): {Balance: big.NewInt(1)}, // ECRecover
673-
common.BytesToAddress([]byte{0x02}): {Balance: big.NewInt(1)}, // SHA256
674-
common.BytesToAddress([]byte{0x03}): {Balance: big.NewInt(1)}, // RIPEMD
675-
common.BytesToAddress([]byte{0x04}): {Balance: big.NewInt(1)}, // Identity
676-
common.BytesToAddress([]byte{0x05}): {Balance: big.NewInt(1)}, // ModExp
677-
common.BytesToAddress([]byte{0x06}): {Balance: big.NewInt(1)}, // ECAdd
678-
common.BytesToAddress([]byte{0x07}): {Balance: big.NewInt(1)}, // ECScalarMul
679-
common.BytesToAddress([]byte{0x08}): {Balance: big.NewInt(1)}, // ECPairing
680-
common.BytesToAddress([]byte{0x09}): {Balance: big.NewInt(1)}, // BLAKE2b
681-
common.BytesToAddress([]byte{0x0a}): {Balance: big.NewInt(1)}, // KZGPointEval
682-
common.BytesToAddress([]byte{0x0b}): {Balance: big.NewInt(1)}, // BLSG1Add
683-
common.BytesToAddress([]byte{0x0c}): {Balance: big.NewInt(1)}, // BLSG1MultiExp
684-
common.BytesToAddress([]byte{0x0d}): {Balance: big.NewInt(1)}, // BLSG2Add
685-
common.BytesToAddress([]byte{0x0e}): {Balance: big.NewInt(1)}, // BLSG2MultiExp
686-
common.BytesToAddress([]byte{0x0f}): {Balance: big.NewInt(1)}, // BLSG1Pairing
687-
common.BytesToAddress([]byte{0x10}): {Balance: big.NewInt(1)}, // BLSG1MapG1
688-
common.BytesToAddress([]byte{0x11}): {Balance: big.NewInt(1)}, // BLSG2MapG2
672+
common.BytesToAddress([]byte{0x01}): {Balance: big.NewInt(1)}, // ECRecover
673+
common.BytesToAddress([]byte{0x02}): {Balance: big.NewInt(1)}, // SHA256
674+
common.BytesToAddress([]byte{0x03}): {Balance: big.NewInt(1)}, // RIPEMD
675+
common.BytesToAddress([]byte{0x04}): {Balance: big.NewInt(1)}, // Identity
676+
common.BytesToAddress([]byte{0x05}): {Balance: big.NewInt(1)}, // ModExp
677+
common.BytesToAddress([]byte{0x06}): {Balance: big.NewInt(1)}, // ECAdd
678+
common.BytesToAddress([]byte{0x07}): {Balance: big.NewInt(1)}, // ECScalarMul
679+
common.BytesToAddress([]byte{0x08}): {Balance: big.NewInt(1)}, // ECPairing
680+
common.BytesToAddress([]byte{0x09}): {Balance: big.NewInt(1)}, // BLAKE2b
681+
common.BytesToAddress([]byte{0x0a}): {Balance: big.NewInt(1)}, // KZGPointEval
682+
common.BytesToAddress([]byte{0x0b}): {Balance: big.NewInt(1)}, // BLSG1Add
683+
common.BytesToAddress([]byte{0x0c}): {Balance: big.NewInt(1)}, // BLSG1MultiExp
684+
common.BytesToAddress([]byte{0x0d}): {Balance: big.NewInt(1)}, // BLSG2Add
685+
common.BytesToAddress([]byte{0x0e}): {Balance: big.NewInt(1)}, // BLSG2MultiExp
686+
common.BytesToAddress([]byte{0x0f}): {Balance: big.NewInt(1)}, // BLSG1Pairing
687+
common.BytesToAddress([]byte{0x10}): {Balance: big.NewInt(1)}, // BLSG1MapG1
688+
common.BytesToAddress([]byte{0x11}): {Balance: big.NewInt(1)}, // BLSG2MapG2
689+
common.BytesToAddress([]byte{0x1, 00}): {Balance: big.NewInt(1)}, // P256Verify
689690
// Pre-deploy system contracts
690691
params.BeaconRootsAddress: {Nonce: 1, Code: params.BeaconRootsCode, Balance: common.Big0},
691692
params.HistoryStorageAddress: {Nonce: 1, Code: params.HistoryStorageCode, Balance: common.Big0},

0 commit comments

Comments
 (0)