Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CA ¶
type CA struct {
// contains filtered or unexported fields
}
func (*CA) GetChallenge ¶
func (ca *CA) GetChallenge(a, b, x *ec.GroupElement) *big.Int
type CACert ¶
type CACert struct { BlindedA *ec.GroupElement BlindedB *ec.GroupElement R *big.Int S *big.Int }
type Cred ¶
type Cred struct { SmallAToGamma *ec.GroupElement SmallBToGamma *ec.GroupElement AToGamma *ec.GroupElement BToGamma *ec.GroupElement T1 *ecschnorr.BlindedTrans T2 *ecschnorr.BlindedTrans }
func NewCred ¶
func NewCred(aToGamma, bToGamma, AToGamma, BToGamma *ec.GroupElement, t1, t2 *ecschnorr.BlindedTrans) *Cred
type CredIssuer ¶
type CredIssuer struct {
// contains filtered or unexported fields
}
func NewCredIssuer ¶
func NewCredIssuer(secKey *pseudsys.SecKey, curveType ec.Curve) *CredIssuer
func (*CredIssuer) GetChallenge ¶
func (i *CredIssuer) GetChallenge(a, b, x *ec.GroupElement) *big.Int
TODO GetChallenge?
func (*CredIssuer) GetProofData ¶
func (*CredIssuer) Verify ¶
func (i *CredIssuer) Verify(z *big.Int) ( *ec.GroupElement, *ec.GroupElement, *ec.GroupElement, *ec.GroupElement, *ec.GroupElement, *ec.GroupElement, error)
Verifies that user knows log_a(b). Sends back proof random data (g1^r, g2^r) for both equality proofs.
type CredVerifier ¶
type CredVerifier struct {
// contains filtered or unexported fields
}
func NewCredVerifier ¶
func NewCredVerifier(secKey *pseudsys.SecKey, c ec.Curve) *CredVerifier
func (*CredVerifier) GetChallenge ¶
func (v *CredVerifier) GetChallenge(a, b, a1, b1, x1, x2 *ec.GroupElement) *big.Int
TODO GetChallenge?
type Nym ¶
type Nym struct { A *ec.GroupElement B *ec.GroupElement }
Nym represents a pseudonym in the pseudonym system scheme.
func NewNym ¶
func NewNym(a, b *ec.GroupElement) *Nym
type NymGenerator ¶
type NymGenerator struct {
// contains filtered or unexported fields
}
func NewNymGenerator ¶
func NewNymGenerator(pubKey *pseudsys.PubKey, c ec.Curve) *NymGenerator
func (*NymGenerator) GetChallenge ¶
func (g *NymGenerator) GetChallenge(nymA, blindedA, nymB, blindedB, x1, x2 *ec.GroupElement, r, s *big.Int) (*big.Int, error)
type PubKey ¶
type PubKey struct {
H1, H2 *ec.GroupElement
}
func GenerateKeyPair ¶
GenerateKeyPair takes EC group and constructs a public key for pseudonym system scheme in EC arithmetic.
func NewPubKey ¶
func NewPubKey(h1, h2 *ec.GroupElement) *PubKey
Click to show internal directories.
Click to hide internal directories.