Versions in this module Expand all Collapse all v1 v1.4.4 Nov 14, 2019 Changes in this version + func NewRandOrPanic() *amcl.RAND + type Big struct + E *FP256BN.BIG + func (b *Big) Bytes() ([]byte, error) + type CredRequest struct + NewRand func() *amcl.RAND + func (*CredRequest) Verify(credentialRequest []byte, ipk handlers.IssuerPublicKey, nonce []byte) (err error) + func (cr *CredRequest) Sign(sk handlers.Big, ipk handlers.IssuerPublicKey, nonce []byte) (res []byte, err error) + type Credential struct + NewRand func() *amcl.RAND + func (*Credential) Verify(sk handlers.Big, ipk handlers.IssuerPublicKey, credential []byte, ...) (err error) + func (c *Credential) Sign(key handlers.IssuerSecretKey, credentialRequest []byte, ...) (res []byte, err error) + type Ecp struct + E *FP256BN.ECP + func (o *Ecp) Bytes() ([]byte, error) + type Issuer struct + NewRand func() *amcl.RAND + func (*Issuer) NewPublicKeyFromBytes(raw []byte, attributes []string) (res handlers.IssuerPublicKey, err error) + func (i *Issuer) NewKey(attributeNames []string) (res handlers.IssuerSecretKey, err error) + type IssuerPublicKey struct + PK *cryptolib.IssuerPublicKey + func (o *IssuerPublicKey) Bytes() ([]byte, error) + func (o *IssuerPublicKey) Hash() []byte + type IssuerSecretKey struct + SK *cryptolib.IssuerKey + func (o *IssuerSecretKey) Bytes() ([]byte, error) + func (o *IssuerSecretKey) Public() handlers.IssuerPublicKey + type NymSignatureScheme struct + NewRand func() *amcl.RAND + func (*NymSignatureScheme) Verify(ipk handlers.IssuerPublicKey, Nym handlers.Ecp, signature, digest []byte) (err error) + func (n *NymSignatureScheme) Sign(sk handlers.Big, Nym handlers.Ecp, RNym handlers.Big, ...) (res []byte, err error) + type Revocation struct + func (*Revocation) NewKey() (*ecdsa.PrivateKey, error) + func (*Revocation) Sign(key *ecdsa.PrivateKey, unrevokedHandles [][]byte, epoch int, ...) (res []byte, err error) + func (*Revocation) Verify(pk *ecdsa.PublicKey, criRaw []byte, epoch int, alg bccsp.RevocationAlgorithm) (err error) + type SignatureScheme struct + NewRand func() *amcl.RAND + func (*SignatureScheme) Verify(ipk handlers.IssuerPublicKey, signature, digest []byte, ...) (err error) + func (s *SignatureScheme) Sign(cred []byte, sk handlers.Big, Nym handlers.Ecp, RNym handlers.Big, ...) (res []byte, err error) + type User struct + NewRand func() *amcl.RAND + func (*User) NewKeyFromBytes(raw []byte) (res handlers.Big, err error) + func (*User) NewPublicNymFromBytes(raw []byte) (r handlers.Ecp, err error) + func (u *User) MakeNym(sk handlers.Big, ipk handlers.IssuerPublicKey) (r1 handlers.Ecp, r2 handlers.Big, err error) + func (u *User) NewKey() (res handlers.Big, err error)