mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-20 13:44:31 +00:00
feat(core/types): export rlpHash() (#174)
#163 was removed by mistake in #162 so this re-adds it Co-authored-by: Arran Schlosberg <519948+ARR4N@users.noreply.github.com>
This commit is contained in:
parent
979064cfdb
commit
d7bb4f6050
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