func NewAccumulator(params *AccumulatorAndProofParams, d Denomination) (*Accumulator, error) {
	if !params.Initialized {
		return nil, errors.New("accumulator and proof params must be initialized")
	}
	return &Accumulator{
		denomination: d,
		value:        params.AccumulatorBase,
	}, nil
}
// NewAccumulator initializes a new empty accumulator with given parameters
// and denomination.
NewAccumulator initializes a new empty accumulator with given parameters
and denomination.
// NewAccumulator initializes a new empty accumulator with given parameters // and denomination .
func NewAccumulator(params *AccumulatorAndProofParams, d Denomination) (*Accumulator, error) {
	if !params.Initialized {
		return nil, errors.New("accumulator and proof params must be initialized")
	}
	return &Accumulator{
		denomination: d,
		value:        params.AccumulatorBase,
	}, nil
}
func NewAccumulator ( params * AccumulatorAndProofParams , d Denomination ) ( * Accumulator , error ) { if ! params . Initialized { return nil , errors . New ( " " ) } return & Accumulator { denomination : d , value : params . AccumulatorBase , } , nil }
NewAccumulator initializes a new empty accumulator with given parameters
and denomination.
NewAccumulator initializes a new empty accumulator with given parameters and denomination .