feat(core/types): export rlpHash() (#163)

## Why this should be merged

Allows `core/types/hashing.go` to be deleted from `coreth`.

## How this works

Exported function acts as a proxy for unexported upstream function.

## How this was tested

NA
This commit is contained in:
Arran Schlosberg 2025-03-13 18:44:20 +00:00 committed by GitHub
parent b0332b5168
commit 433c6069e2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -20,6 +20,7 @@ import (
"fmt"
"io"
"github.com/ava-labs/libevm/common"
"github.com/ava-labs/libevm/libevm/pseudo"
"github.com/ava-labs/libevm/libevm/register"
"github.com/ava-labs/libevm/libevm/testonly"
@ -365,3 +366,8 @@ func (e *StateAccountExtra) Format(s fmt.State, verb rune) {
}
_, _ = s.Write([]byte(out))
}
// RLPHash returns the hash of the RLP encoding of `x`.
func RLPHash(x any) common.Hash {
return rlpHash(x)
}