func NewZerocoinParams(N *big.Int, securityLevel uint32) (*Params, error) {
	params := &Params{
		AccumulatorParams: &AccumulatorAndProofParams{
			AccumulatorQRNCommitmentGroup: &IntegerGroupParams{},
			AccumulatorPoKCommitmentGroup: &IntegerGroupParams{},
		},
	}
	params.ZKPHashLength = securityLevel
	params.ZKPIterations = securityLevel

	params.AccumulatorParams.KPrime = accumulatorProofKPrime
	params.AccumulatorParams.KDPrime = accumulatorProofKDPrime

	err := calculateParams(N, zerocoinProtocolVersion, securityLevel, params)
	if err != nil {
		return nil, err
	}

	params.AccumulatorParams.Initialized = true
	params.Initialized = true

	return params, nil
}
// NewZerocoinParams returns a new set of Zerocoin params given a certain modulus.
NewZerocoinParams returns a new set of Zerocoin params given a certain modulus.
// NewZerocoinParams returns a new set of Zerocoin params given a certain modulus .
func NewZerocoinParams(N *big.Int, securityLevel uint32) (*Params, error) {
	params := &Params{
		AccumulatorParams: &AccumulatorAndProofParams{
			AccumulatorQRNCommitmentGroup: &IntegerGroupParams{},
			AccumulatorPoKCommitmentGroup: &IntegerGroupParams{},
		},
	}
	params.ZKPHashLength = securityLevel
	params.ZKPIterations = securityLevel
	params.AccumulatorParams.KPrime = accumulatorProofKPrime
	params.AccumulatorParams.KDPrime = accumulatorProofKDPrime
	err := calculateParams(N, zerocoinProtocolVersion, securityLevel, params)
	if err != nil {
		return nil, err
	}
	params.AccumulatorParams.Initialized = true
	params.Initialized = true
	return params, nil
}
func NewZerocoinParams ( N * big . Int , securityLevel uint32 ) ( * Params , error ) { params := & Params { AccumulatorParams : & AccumulatorAndProofParams { AccumulatorQRNCommitmentGroup : & IntegerGroupParams { } , AccumulatorPoKCommitmentGroup : & IntegerGroupParams { } , } , } params . ZKPHashLength = securityLevel params . ZKPIterations = securityLevel params . AccumulatorParams . KPrime = accumulatorProofKPrime params . AccumulatorParams . KDPrime = accumulatorProofKDPrime err := calculateParams ( N , zerocoinProtocolVersion , securityLevel , params ) if err != nil { return nil , err } params . AccumulatorParams . Initialized = true params . Initialized = true return params , nil }
NewZerocoinParams returns a new set of Zerocoin params given a certain modulus.
NewZerocoinParams returns a new set of Zerocoin params given a certain modulus .