// When receiver receives a decommitment, CheckDecommitment verifies it against the stored value
// (stored by SetCommitment).
When receiver receives a decommitment, CheckDecommitment verifies it against the stored value
(stored by SetCommitment).
// When receiver receives a decommitment CheckDecommitment verifies it against the stored value // ( stored by SetCommitment ) .
func (s *PedersenReceiver) CheckDecommitment(r, val *big.Int) bool {
	t1 := s.Group.Exp(s.Group.G, val) 
	t2 := s.Group.Exp(s.H, r)         
	c := s.Group.Mul(t1, t2)           * h^r
	return c.Cmp(s.commitment) == 0
}
func ( s * PedersenReceiver ) CheckDecommitment ( r , val * big . Int ) bool { t1 := s . Group . Exp ( s . Group . G , val ) t2 := s . Group . Exp ( s . H , r ) c := s . Group . Mul ( t1 , t2 ) return c . Cmp ( s . commitment ) == 0 }
When receiver receives a decommitment, CheckDecommitment verifies it against the stored value
(stored by SetCommitment).
When receiver receives a decommitment CheckDecommitment verifies it against the stored value ( stored by SetCommitment ) .
// g^x // h^r // g^x * h^r