Versions in this module Expand all Collapse all v1 v1.1.0 Mar 15, 2018 Changes in this version + var FieldBytes = int(FP256BN.MODBYTES) + var GenG1 = FP256BN.NewECPbigs(FP256BN.NewBIGints(FP256BN.CURVE_Gx), FP256BN.NewBIGints(FP256BN.CURVE_Gy)) + var GenG2 = FP256BN.NewECP2fp2s(...) + var GroupOrder = FP256BN.NewBIGints(FP256BN.CURVE_Order) + func BigToBytes(big *FP256BN.BIG) []byte + func Ecp2FromProto(p *ECP2) *FP256BN.ECP2 + func EcpFromProto(p *ECP) *FP256BN.ECP + func GetRand() (*amcl.RAND, error) + func HashModOrder(data []byte) *FP256BN.BIG + func MakeNym(sk *FP256BN.BIG, IPk *IssuerPublicKey, rng *amcl.RAND) (*FP256BN.ECP, *FP256BN.BIG) + func Modadd(a, b, m *FP256BN.BIG) *FP256BN.BIG + func Modsub(a, b, m *FP256BN.BIG) *FP256BN.BIG + func RandModOrder(rng *amcl.RAND) *FP256BN.BIG + type CredRequest struct + IssuerNonce []byte + Nym *ECP + ProofC []byte + ProofS1 []byte + ProofS2 []byte + func NewCredRequest(sk *FP256BN.BIG, credS1 *FP256BN.BIG, IssuerNonce *FP256BN.BIG, ...) *CredRequest + func (*CredRequest) Descriptor() ([]byte, []int) + func (*CredRequest) ProtoMessage() + func (m *CredRequest) Check(ipk *IssuerPublicKey) error + func (m *CredRequest) GetIssuerNonce() []byte + func (m *CredRequest) GetNym() *ECP + func (m *CredRequest) GetProofC() []byte + func (m *CredRequest) GetProofS1() []byte + func (m *CredRequest) GetProofS2() []byte + func (m *CredRequest) Reset() + func (m *CredRequest) String() string + type Credential struct + A *ECP + Attrs [][]byte + B *ECP + E []byte + S []byte + func NewCredential(key *IssuerKey, m *CredRequest, attrs []*FP256BN.BIG, rng *amcl.RAND) (*Credential, error) + func (*Credential) Descriptor() ([]byte, []int) + func (*Credential) ProtoMessage() + func (cred *Credential) Complete(credS1 *FP256BN.BIG) + func (cred *Credential) Ver(sk *FP256BN.BIG, ipk *IssuerPublicKey) error + func (m *Credential) GetA() *ECP + func (m *Credential) GetAttrs() [][]byte + func (m *Credential) GetB() *ECP + func (m *Credential) GetE() []byte + func (m *Credential) GetS() []byte + func (m *Credential) Reset() + func (m *Credential) String() string + type ECP struct + X []byte + Y []byte + func EcpToProto(p *FP256BN.ECP) *ECP + func (*ECP) Descriptor() ([]byte, []int) + func (*ECP) ProtoMessage() + func (m *ECP) GetX() []byte + func (m *ECP) GetY() []byte + func (m *ECP) Reset() + func (m *ECP) String() string + type ECP2 struct + XA []byte + XB []byte + YA []byte + YB []byte + func Ecp2ToProto(p *FP256BN.ECP2) *ECP2 + func (*ECP2) Descriptor() ([]byte, []int) + func (*ECP2) ProtoMessage() + func (m *ECP2) GetXA() []byte + func (m *ECP2) GetXB() []byte + func (m *ECP2) GetYA() []byte + func (m *ECP2) GetYB() []byte + func (m *ECP2) Reset() + func (m *ECP2) String() string + type IssuerKey struct + IPk *IssuerPublicKey + ISk []byte + func NewIssuerKey(AttributeNames []string, rng *amcl.RAND) (*IssuerKey, error) + func (*IssuerKey) Descriptor() ([]byte, []int) + func (*IssuerKey) ProtoMessage() + func (m *IssuerKey) GetIPk() *IssuerPublicKey + func (m *IssuerKey) GetISk() []byte + func (m *IssuerKey) Reset() + func (m *IssuerKey) String() string + type IssuerPublicKey struct + AttributeNames []string + BarG1 *ECP + BarG2 *ECP + HAttrs []*ECP + HRand *ECP + HSk *ECP + Hash []byte + ProofC []byte + ProofS []byte + W *ECP2 + func (*IssuerPublicKey) Descriptor() ([]byte, []int) + func (*IssuerPublicKey) ProtoMessage() + func (IPk *IssuerPublicKey) Check() error + func (IPk *IssuerPublicKey) SetHash() error + func (m *IssuerPublicKey) GetAttributeNames() []string + func (m *IssuerPublicKey) GetBarG1() *ECP + func (m *IssuerPublicKey) GetBarG2() *ECP + func (m *IssuerPublicKey) GetHAttrs() []*ECP + func (m *IssuerPublicKey) GetHRand() *ECP + func (m *IssuerPublicKey) GetHSk() *ECP + func (m *IssuerPublicKey) GetHash() []byte + func (m *IssuerPublicKey) GetProofC() []byte + func (m *IssuerPublicKey) GetProofS() []byte + func (m *IssuerPublicKey) GetW() *ECP2 + func (m *IssuerPublicKey) Reset() + func (m *IssuerPublicKey) String() string + type NymSignature struct + Nonce []byte + ProofC []byte + ProofSRNym []byte + ProofSSk []byte + func NewNymSignature(sk *FP256BN.BIG, Nym *FP256BN.ECP, RNym *FP256BN.BIG, ipk *IssuerPublicKey, ...) (*NymSignature, error) + func (*NymSignature) Descriptor() ([]byte, []int) + func (*NymSignature) ProtoMessage() + func (m *NymSignature) GetNonce() []byte + func (m *NymSignature) GetProofC() []byte + func (m *NymSignature) GetProofSRNym() []byte + func (m *NymSignature) GetProofSSk() []byte + func (m *NymSignature) Reset() + func (m *NymSignature) String() string + func (sig *NymSignature) Ver(nym *FP256BN.ECP, ipk *IssuerPublicKey, msg []byte) error + type Signature struct + ABar *ECP + APrime *ECP + BPrime *ECP + Nonce []byte + Nym *ECP + ProofC []byte + ProofSAttrs [][]byte + ProofSE []byte + ProofSR2 []byte + ProofSR3 []byte + ProofSRNym []byte + ProofSSPrime []byte + ProofSSk []byte + func NewSignature(cred *Credential, sk *FP256BN.BIG, Nym *FP256BN.ECP, RNym *FP256BN.BIG, ...) (*Signature, error) + func (*Signature) Descriptor() ([]byte, []int) + func (*Signature) ProtoMessage() + func (m *Signature) GetABar() *ECP + func (m *Signature) GetAPrime() *ECP + func (m *Signature) GetBPrime() *ECP + func (m *Signature) GetNonce() []byte + func (m *Signature) GetNym() *ECP + func (m *Signature) GetProofC() []byte + func (m *Signature) GetProofSAttrs() [][]byte + func (m *Signature) GetProofSE() []byte + func (m *Signature) GetProofSR2() []byte + func (m *Signature) GetProofSR3() []byte + func (m *Signature) GetProofSRNym() []byte + func (m *Signature) GetProofSSPrime() []byte + func (m *Signature) GetProofSSk() []byte + func (m *Signature) Reset() + func (m *Signature) String() string + func (sig *Signature) Ver(Disclosure []byte, ipk *IssuerPublicKey, msg []byte, ...) error v1.1.0-rc1 Mar 1, 2018 v1.1.0-preview Nov 1, 2017 v1.1.0-alpha Jan 26, 2018