func DefaultBlockDataHashingStructure() *cb.ConfigGroup {
	return TemplateBlockDataHashingStructure(defaultBlockDataHashingStructureWidth)
}
DefaultBlockDatahashingStructure creates a headerless config item for the default block data hashing structure
package config
import (
	"math"
	"github.com/inklabsfoundation/inkchain/bccsp"
	cb "github.com/inklabsfoundation/inkchain/protos/common"
	"github.com/inklabsfoundation/inkchain/protos/utils"
)
const defaultHashingAlgorithm = bccsp.SHA256
func configGroup(key string, value []byte) *cb.ConfigGroup {
	result := cb.NewConfigGroup()
	result.Values[key] = &cb.ConfigValue{
		Value: value,
	}
	return result
}
func TemplateConsortium(name string) *cb.ConfigGroup {
	return configGroup(ConsortiumKey, utils.MarshalOrPanic(&cb.Consortium{Name: name}))
}
func TemplateHashingAlgorithm(name string) *cb.ConfigGroup {
	return configGroup(HashingAlgorithmKey, utils.MarshalOrPanic(&cb.HashingAlgorithm{Name: name}))
}
func DefaultHashingAlgorithm() *cb.ConfigGroup {
	return TemplateHashingAlgorithm(defaultHashingAlgorithm)
}
const defaultBlockDataHashingStructureWidth = math.MaxUint32
func TemplateBlockDataHashingStructure(width uint32) *cb.ConfigGroup {
	return configGroup(BlockDataHashingStructureKey, utils.MarshalOrPanic(&cb.BlockDataHashingStructure{Width: width}))
}