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:
Quentin McGaw 2025-03-27 16:32:41 +01:00 committed by GitHub
parent 979064cfdb
commit d7bb4f6050
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)
}