mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-20 13:44:31 +00:00
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:
parent
b0332b5168
commit
433c6069e2
1 changed files with 6 additions and 0 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue