2021-07-27 15:47:03 +00:00
|
|
|
package v2
|
|
|
|
|
|
|
|
import (
|
2021-09-23 01:10:25 +00:00
|
|
|
"context"
|
2021-07-27 15:47:03 +00:00
|
|
|
|
2022-08-16 12:20:13 +00:00
|
|
|
"github.com/prysmaticlabs/prysm/v3/beacon-chain/state/stateutil"
|
|
|
|
ethpb "github.com/prysmaticlabs/prysm/v3/proto/prysm/v1alpha1"
|
2021-07-27 15:47:03 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// computeFieldRoots returns the hash tree root computations of every field in
|
|
|
|
// the beacon state as a list of 32 byte roots.
|
2021-09-23 01:10:25 +00:00
|
|
|
func computeFieldRoots(ctx context.Context, state *ethpb.BeaconStateAltair) ([][]byte, error) {
|
2022-02-22 09:27:51 +00:00
|
|
|
return stateutil.ComputeFieldRootsWithHasherAltair(ctx, state)
|
2021-07-27 15:47:03 +00:00
|
|
|
}
|