From 19c31a0ead9b1318527424c44323ff6acdc797d5 Mon Sep 17 00:00:00 2001 From: Kevaundray Wedderburn Date: Thu, 29 Feb 2024 12:07:22 +0000 Subject: [PATCH] unexport `mapToScalarFieldBytes` --- trie/utils/verkle.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trie/utils/verkle.go b/trie/utils/verkle.go index 481f485267..f138a047d1 100644 --- a/trie/utils/verkle.go +++ b/trie/utils/verkle.go @@ -308,14 +308,14 @@ func StorageSlotKeyWithEvaluatedAddress(evaluated *verkle.Point, storageKey []by // TODO: We can remove this method once https://github.com/ethereum/go-verkle/pull/428 // TODO is merged. // TODO: we would then be able to call `verkle.MapToScalarFieldBytes` -func MapToScalarFieldBytes(point *verkle.Point) [32]byte { +func mapToScalarFieldBytes(point *verkle.Point) [32]byte { var hashedPoint verkle.Fr point.MapToScalarField(&hashedPoint) return hashedPoint.BytesLE() } func pointToHash(evaluated *verkle.Point, suffix byte) []byte { - bytes := MapToScalarFieldBytes(evaluated) + bytes := mapToScalarFieldBytes(evaluated) bytes[31] = suffix return bytes[:] }