func (p PublicCoin) Validate() bool {
	if p.params.AccumulatorParams.MinCoinValue.Cmp(p.value) >= 0 {
		return false
	}
	if p.params.AccumulatorParams.MaxCoinValue.Cmp(p.value) < 0 {
		return false
	}
	if !p.value.ProbablyPrime(int(p.params.ZKPIterations)) {
		return false
	}
	return true
}
// Validate checks the validity of a public coin.
Validate checks the validity of a public coin.
// Validate checks the validity of a public coin .
func (p PublicCoin) Validate() bool {
	if p.params.AccumulatorParams.MinCoinValue.Cmp(p.value) >= 0 {
		return false
	}
	if p.params.AccumulatorParams.MaxCoinValue.Cmp(p.value) < 0 {
		return false
	}
	if !p.value.ProbablyPrime(int(p.params.ZKPIterations)) {
		return false
	}
	return true
}
func ( p PublicCoin ) Validate ( ) bool { if p . params . AccumulatorParams . MinCoinValue . Cmp ( p . value ) >= 0 { return false } if p . params . AccumulatorParams . MaxCoinValue . Cmp ( p . value ) < 0 { return false } if ! p . value . ProbablyPrime ( int ( p . params . ZKPIterations ) ) { return false } return true }
Validate checks the validity of a public coin.
Validate checks the validity of a public coin .