mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
unexport mapToScalarFieldBytes
This commit is contained in:
parent
2f75c12e2e
commit
19c31a0ead
1 changed files with 2 additions and 2 deletions
|
|
@ -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[:]
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue