Skip to content

Commit

Permalink
chore(p256): adjust p256 precompile address (backport #2228) (#2229)
Browse files Browse the repository at this point in the history
* chore(p256): adjust p256 precompile address (#2228)

* adjust p256 precompile address

* add changelog entry

* move changelog entry to improvements

(cherry picked from commit 7821cb8)

* move changelog to correct place

---------

Co-authored-by: MalteHerrmann <42640438+MalteHerrmann@users.noreply.github.com>
Co-authored-by: MalteHerrmann <malte@evmos.org>
  • Loading branch information
3 people committed Jan 4, 2024
1 parent 8b0cbb0 commit 261d411
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ Ref: https://keepachangelog.com/en/1.0.0/

# Changelog

## Unreleased

### Improvements

- (p256-precompile) [#2228](https://github.com/evmos/evmos/pull/2228) Adjust p256 precompile address from `0x0b` to `0x100`.

## [v16.0.0-rc5] - 2024-01-03

### State Machine Breaking
Expand Down
3 changes: 2 additions & 1 deletion precompiles/p256/p256.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
//
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.

package p256

import (
Expand All @@ -33,7 +34,7 @@ const (
)

// PrecompileAddress defines the hex address of the p256 precompiled contract.
const PrecompileAddress = "0x000000000000000000000000000000000000000b"
const PrecompileAddress = "0x0000000000000000000000000000000000000100"

// Precompile secp256r1 (P256) signature verification
// implemented as a native contract as per EIP-7212.
Expand Down

0 comments on commit 261d411

Please sign in to comment.