Documentation ¶
Overview ¶
Package clpb is a generated protocol buffer package.
It is generated from these files:
anauth/cl/clpb/cl.proto
It has these top-level messages:
Request Response Empty SchnorrGroup PedersenParams PubKey Params PublicParams CredIssueRequest Cred IssuedCred CredUpdateRequest CredProof FiatShamir FiatShamirAlsoNeg AcceptableCred AcceptableCreds Attribute IntAttribute StringAttribute CredAttribute CredStructure
Index ¶
- func RegisterAnonCredsServer(s *grpc.Server, srv AnonCredsServer)
- type AcceptableCred
- type AcceptableCreds
- type AnonCredsClient
- type AnonCredsServer
- type AnonCreds_IssueClient
- type AnonCreds_IssueServer
- type AnonCreds_ProveClient
- type AnonCreds_ProveServer
- type Attribute
- type Cred
- type CredAttribute
- func (*CredAttribute) Descriptor() ([]byte, []int)
- func (m *CredAttribute) GetIntAttr() *IntAttribute
- func (m *CredAttribute) GetStringAttr() *StringAttribute
- func (m *CredAttribute) GetType() isCredAttribute_Type
- func (*CredAttribute) ProtoMessage()
- func (m *CredAttribute) Reset()
- func (m *CredAttribute) String() string
- func (*CredAttribute) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- type CredAttribute_IntAttr
- type CredAttribute_StringAttr
- type CredIssueRequest
- func (*CredIssueRequest) Descriptor() ([]byte, []int)
- func (m *CredIssueRequest) GetCommitmentsOfAttrs() [][]byte
- func (m *CredIssueRequest) GetCommitmentsOfAttrsProofs() []*FiatShamir
- func (m *CredIssueRequest) GetKnownAttrs() [][]byte
- func (m *CredIssueRequest) GetNonce() []byte
- func (m *CredIssueRequest) GetNym() []byte
- func (m *CredIssueRequest) GetNymProof() *FiatShamir
- func (m *CredIssueRequest) GetRegKey() string
- func (m *CredIssueRequest) GetU() []byte
- func (m *CredIssueRequest) GetUProof() *FiatShamirAlsoNeg
- func (*CredIssueRequest) ProtoMessage()
- func (m *CredIssueRequest) Reset()
- func (m *CredIssueRequest) String() string
- type CredProof
- func (*CredProof) Descriptor() ([]byte, []int)
- func (m *CredProof) GetA() []byte
- func (m *CredProof) GetCommitmentsOfAttrs() [][]byte
- func (m *CredProof) GetKnownAttrs() [][]byte
- func (m *CredProof) GetProof() *FiatShamirAlsoNeg
- func (m *CredProof) GetRevealedCommitmentsOfAttrs() []int32
- func (m *CredProof) GetRevealedKnownAttrs() []int32
- func (*CredProof) ProtoMessage()
- func (m *CredProof) Reset()
- func (m *CredProof) String() string
- type CredStructure
- func (*CredStructure) Descriptor() ([]byte, []int)
- func (m *CredStructure) GetAttributes() []*CredAttribute
- func (m *CredStructure) GetNCommitted() int32
- func (m *CredStructure) GetNHidden() int32
- func (m *CredStructure) GetNKnown() int32
- func (*CredStructure) ProtoMessage()
- func (m *CredStructure) Reset()
- func (m *CredStructure) String() string
- type CredUpdateRequest
- func (*CredUpdateRequest) Descriptor() ([]byte, []int)
- func (m *CredUpdateRequest) GetNewKnownAttrs() [][]byte
- func (m *CredUpdateRequest) GetNonce() []byte
- func (m *CredUpdateRequest) GetNym() []byte
- func (*CredUpdateRequest) ProtoMessage()
- func (m *CredUpdateRequest) Reset()
- func (m *CredUpdateRequest) String() string
- type Empty
- type FiatShamir
- type FiatShamirAlsoNeg
- func (*FiatShamirAlsoNeg) Descriptor() ([]byte, []int)
- func (m *FiatShamirAlsoNeg) GetChallenge() []byte
- func (m *FiatShamirAlsoNeg) GetProofData() []string
- func (m *FiatShamirAlsoNeg) GetProofRandomData() []byte
- func (*FiatShamirAlsoNeg) ProtoMessage()
- func (m *FiatShamirAlsoNeg) Reset()
- func (m *FiatShamirAlsoNeg) String() string
- type IntAttribute
- type IssuedCred
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetAttrBitLen() int32
- func (m *Params) GetChallengeSpace() int32
- func (m *Params) GetE1BitLen() int32
- func (m *Params) GetEBitLen() int32
- func (m *Params) GetHashBitLen() int32
- func (m *Params) GetNLength() int32
- func (m *Params) GetRhoBitLen() int32
- func (m *Params) GetSecParam() int32
- func (m *Params) GetVBitLen() int32
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) String() string
- type PedersenParams
- type PubKey
- func (*PubKey) Descriptor() ([]byte, []int)
- func (m *PubKey) GetG() []byte
- func (m *PubKey) GetH() []byte
- func (m *PubKey) GetN() []byte
- func (m *PubKey) GetN1() []byte
- func (m *PubKey) GetPedersenParams() *PedersenParams
- func (m *PubKey) GetRsCommitted() [][]byte
- func (m *PubKey) GetRsHidden() [][]byte
- func (m *PubKey) GetRsKnown() [][]byte
- func (m *PubKey) GetS() []byte
- func (m *PubKey) GetZ() []byte
- func (*PubKey) ProtoMessage()
- func (m *PubKey) Reset()
- func (m *PubKey) String() string
- type PublicParams
- type Request
- func (*Request) Descriptor() ([]byte, []int)
- func (m *Request) GetCredIssue() *CredIssueRequest
- func (m *Request) GetCredProve() *CredProof
- func (m *Request) GetEmpty() *Empty
- func (m *Request) GetRegKey() string
- func (m *Request) GetType() isRequest_Type
- func (*Request) ProtoMessage()
- func (m *Request) Reset()
- func (m *Request) String() string
- func (*Request) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- type Request_CredIssue
- type Request_CredProve
- type Request_Empty
- type Request_RegKey
- type Response
- func (*Response) Descriptor() ([]byte, []int)
- func (m *Response) GetIssuedCred() *IssuedCred
- func (m *Response) GetNonce() []byte
- func (m *Response) GetSessionKey() string
- func (m *Response) GetType() isResponse_Type
- func (*Response) ProtoMessage()
- func (m *Response) Reset()
- func (m *Response) String() string
- func (*Response) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- type Response_IssuedCred
- type Response_Nonce
- type Response_SessionKey
- type SchnorrGroup
- type StringAttribute
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterAnonCredsServer ¶
func RegisterAnonCredsServer(s *grpc.Server, srv AnonCredsServer)
Types ¶
type AcceptableCred ¶
type AcceptableCred struct { OrgName string `protobuf:"bytes,1,opt,name=orgName" json:"orgName,omitempty"` RevealedAttrs []string `protobuf:"bytes,2,rep,name=revealedAttrs" json:"revealedAttrs,omitempty"` }
func (*AcceptableCred) Descriptor ¶
func (*AcceptableCred) Descriptor() ([]byte, []int)
func (*AcceptableCred) GetOrgName ¶
func (m *AcceptableCred) GetOrgName() string
func (*AcceptableCred) GetRevealedAttrs ¶
func (m *AcceptableCred) GetRevealedAttrs() []string
func (*AcceptableCred) ProtoMessage ¶
func (*AcceptableCred) ProtoMessage()
func (*AcceptableCred) Reset ¶
func (m *AcceptableCred) Reset()
func (*AcceptableCred) String ¶
func (m *AcceptableCred) String() string
type AcceptableCreds ¶
type AcceptableCreds struct {
Creds []*AcceptableCred `protobuf:"bytes,1,rep,name=creds" json:"creds,omitempty"`
}
func (*AcceptableCreds) Descriptor ¶
func (*AcceptableCreds) Descriptor() ([]byte, []int)
func (*AcceptableCreds) GetCreds ¶
func (m *AcceptableCreds) GetCreds() []*AcceptableCred
func (*AcceptableCreds) ProtoMessage ¶
func (*AcceptableCreds) ProtoMessage()
func (*AcceptableCreds) Reset ¶
func (m *AcceptableCreds) Reset()
func (*AcceptableCreds) String ¶
func (m *AcceptableCreds) String() string
type AnonCredsClient ¶
type AnonCredsClient interface { GetPublicParams(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*PublicParams, error) // TODO merge with GetPublicParams GetAcceptableCreds(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*AcceptableCreds, error) Issue(ctx context.Context, opts ...grpc.CallOption) (AnonCreds_IssueClient, error) Update(ctx context.Context, in *CredUpdateRequest, opts ...grpc.CallOption) (*IssuedCred, error) Prove(ctx context.Context, opts ...grpc.CallOption) (AnonCreds_ProveClient, error) }
func NewAnonCredsClient ¶
func NewAnonCredsClient(cc *grpc.ClientConn) AnonCredsClient
type AnonCredsServer ¶
type AnonCredsServer interface { GetPublicParams(context.Context, *Empty) (*PublicParams, error) // TODO merge with GetPublicParams GetAcceptableCreds(context.Context, *Empty) (*AcceptableCreds, error) Issue(AnonCreds_IssueServer) error Update(context.Context, *CredUpdateRequest) (*IssuedCred, error) Prove(AnonCreds_ProveServer) error }
type AnonCreds_IssueClient ¶
type AnonCreds_IssueServer ¶
type AnonCreds_ProveClient ¶
type AnonCreds_ProveServer ¶
type Attribute ¶
type Attribute struct { Index int32 `protobuf:"varint,1,opt,name=index" json:"index,omitempty"` Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` Known bool `protobuf:"varint,4,opt,name=known" json:"known,omitempty"` }
func (*Attribute) Descriptor ¶
func (*Attribute) ProtoMessage ¶
func (*Attribute) ProtoMessage()
type Cred ¶
type Cred struct { A []byte `protobuf:"bytes,1,opt,name=A,proto3" json:"A,omitempty"` E []byte `protobuf:"bytes,2,opt,name=E,proto3" json:"E,omitempty"` V11 []byte `protobuf:"bytes,3,opt,name=V11,proto3" json:"V11,omitempty"` }
func (*Cred) Descriptor ¶
func (*Cred) ProtoMessage ¶
func (*Cred) ProtoMessage()
type CredAttribute ¶
type CredAttribute struct { // Types that are valid to be assigned to Type: // *CredAttribute_StringAttr // *CredAttribute_IntAttr Type isCredAttribute_Type `protobuf_oneof:"type"` }
func (*CredAttribute) Descriptor ¶
func (*CredAttribute) Descriptor() ([]byte, []int)
func (*CredAttribute) GetIntAttr ¶
func (m *CredAttribute) GetIntAttr() *IntAttribute
func (*CredAttribute) GetStringAttr ¶
func (m *CredAttribute) GetStringAttr() *StringAttribute
func (*CredAttribute) GetType ¶
func (m *CredAttribute) GetType() isCredAttribute_Type
func (*CredAttribute) ProtoMessage ¶
func (*CredAttribute) ProtoMessage()
func (*CredAttribute) Reset ¶
func (m *CredAttribute) Reset()
func (*CredAttribute) String ¶
func (m *CredAttribute) String() string
func (*CredAttribute) XXX_OneofFuncs ¶
func (*CredAttribute) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
XXX_OneofFuncs is for the internal use of the proto package.
type CredAttribute_IntAttr ¶
type CredAttribute_IntAttr struct {
IntAttr *IntAttribute `protobuf:"bytes,2,opt,name=intAttr,oneof"`
}
type CredAttribute_StringAttr ¶
type CredAttribute_StringAttr struct {
StringAttr *StringAttribute `protobuf:"bytes,1,opt,name=stringAttr,oneof"`
}
type CredIssueRequest ¶
type CredIssueRequest struct { Nym []byte `protobuf:"bytes,1,opt,name=Nym,proto3" json:"Nym,omitempty"` KnownAttrs [][]byte `protobuf:"bytes,2,rep,name=KnownAttrs,proto3" json:"KnownAttrs,omitempty"` CommitmentsOfAttrs [][]byte `protobuf:"bytes,3,rep,name=CommitmentsOfAttrs,proto3" json:"CommitmentsOfAttrs,omitempty"` NymProof *FiatShamir `protobuf:"bytes,4,opt,name=NymProof" json:"NymProof,omitempty"` U []byte `protobuf:"bytes,5,opt,name=U,proto3" json:"U,omitempty"` UProof *FiatShamirAlsoNeg `protobuf:"bytes,6,opt,name=UProof" json:"UProof,omitempty"` CommitmentsOfAttrsProofs []*FiatShamir `protobuf:"bytes,7,rep,name=CommitmentsOfAttrsProofs" json:"CommitmentsOfAttrsProofs,omitempty"` Nonce []byte `protobuf:"bytes,8,opt,name=Nonce,proto3" json:"Nonce,omitempty"` RegKey string `protobuf:"bytes,9,opt,name=RegKey" json:"RegKey,omitempty"` }
func (*CredIssueRequest) Descriptor ¶
func (*CredIssueRequest) Descriptor() ([]byte, []int)
func (*CredIssueRequest) GetCommitmentsOfAttrs ¶
func (m *CredIssueRequest) GetCommitmentsOfAttrs() [][]byte
func (*CredIssueRequest) GetCommitmentsOfAttrsProofs ¶
func (m *CredIssueRequest) GetCommitmentsOfAttrsProofs() []*FiatShamir
func (*CredIssueRequest) GetKnownAttrs ¶
func (m *CredIssueRequest) GetKnownAttrs() [][]byte
func (*CredIssueRequest) GetNonce ¶
func (m *CredIssueRequest) GetNonce() []byte
func (*CredIssueRequest) GetNym ¶
func (m *CredIssueRequest) GetNym() []byte
func (*CredIssueRequest) GetNymProof ¶
func (m *CredIssueRequest) GetNymProof() *FiatShamir
func (*CredIssueRequest) GetRegKey ¶
func (m *CredIssueRequest) GetRegKey() string
func (*CredIssueRequest) GetU ¶
func (m *CredIssueRequest) GetU() []byte
func (*CredIssueRequest) GetUProof ¶
func (m *CredIssueRequest) GetUProof() *FiatShamirAlsoNeg
func (*CredIssueRequest) ProtoMessage ¶
func (*CredIssueRequest) ProtoMessage()
func (*CredIssueRequest) Reset ¶
func (m *CredIssueRequest) Reset()
func (*CredIssueRequest) String ¶
func (m *CredIssueRequest) String() string
type CredProof ¶
type CredProof struct { A []byte `protobuf:"bytes,1,opt,name=A,proto3" json:"A,omitempty"` Proof *FiatShamirAlsoNeg `protobuf:"bytes,2,opt,name=Proof" json:"Proof,omitempty"` KnownAttrs [][]byte `protobuf:"bytes,3,rep,name=KnownAttrs,proto3" json:"KnownAttrs,omitempty"` CommitmentsOfAttrs [][]byte `protobuf:"bytes,4,rep,name=CommitmentsOfAttrs,proto3" json:"CommitmentsOfAttrs,omitempty"` RevealedKnownAttrs []int32 `protobuf:"varint,5,rep,packed,name=RevealedKnownAttrs" json:"RevealedKnownAttrs,omitempty"` RevealedCommitmentsOfAttrs []int32 `protobuf:"varint,6,rep,packed,name=RevealedCommitmentsOfAttrs" json:"RevealedCommitmentsOfAttrs,omitempty"` }
func (*CredProof) Descriptor ¶
func (*CredProof) GetCommitmentsOfAttrs ¶
func (*CredProof) GetKnownAttrs ¶
func (*CredProof) GetProof ¶
func (m *CredProof) GetProof() *FiatShamirAlsoNeg
func (*CredProof) GetRevealedCommitmentsOfAttrs ¶
func (*CredProof) GetRevealedKnownAttrs ¶
func (*CredProof) ProtoMessage ¶
func (*CredProof) ProtoMessage()
type CredStructure ¶
type CredStructure struct { NKnown int32 `protobuf:"varint,1,opt,name=nKnown" json:"nKnown,omitempty"` NCommitted int32 `protobuf:"varint,2,opt,name=nCommitted" json:"nCommitted,omitempty"` NHidden int32 `protobuf:"varint,3,opt,name=nHidden" json:"nHidden,omitempty"` Attributes []*CredAttribute `protobuf:"bytes,4,rep,name=attributes" json:"attributes,omitempty"` }
func (*CredStructure) Descriptor ¶
func (*CredStructure) Descriptor() ([]byte, []int)
func (*CredStructure) GetAttributes ¶
func (m *CredStructure) GetAttributes() []*CredAttribute
func (*CredStructure) GetNCommitted ¶
func (m *CredStructure) GetNCommitted() int32
func (*CredStructure) GetNHidden ¶
func (m *CredStructure) GetNHidden() int32
func (*CredStructure) GetNKnown ¶
func (m *CredStructure) GetNKnown() int32
func (*CredStructure) ProtoMessage ¶
func (*CredStructure) ProtoMessage()
func (*CredStructure) Reset ¶
func (m *CredStructure) Reset()
func (*CredStructure) String ¶
func (m *CredStructure) String() string
type CredUpdateRequest ¶
type CredUpdateRequest struct { Nym []byte `protobuf:"bytes,1,opt,name=Nym,proto3" json:"Nym,omitempty"` Nonce []byte `protobuf:"bytes,2,opt,name=Nonce,proto3" json:"Nonce,omitempty"` NewKnownAttrs [][]byte `protobuf:"bytes,3,rep,name=NewKnownAttrs,proto3" json:"NewKnownAttrs,omitempty"` }
func (*CredUpdateRequest) Descriptor ¶
func (*CredUpdateRequest) Descriptor() ([]byte, []int)
func (*CredUpdateRequest) GetNewKnownAttrs ¶
func (m *CredUpdateRequest) GetNewKnownAttrs() [][]byte
func (*CredUpdateRequest) GetNonce ¶
func (m *CredUpdateRequest) GetNonce() []byte
func (*CredUpdateRequest) GetNym ¶
func (m *CredUpdateRequest) GetNym() []byte
func (*CredUpdateRequest) ProtoMessage ¶
func (*CredUpdateRequest) ProtoMessage()
func (*CredUpdateRequest) Reset ¶
func (m *CredUpdateRequest) Reset()
func (*CredUpdateRequest) String ¶
func (m *CredUpdateRequest) String() string
type Empty ¶
type Empty struct { }
func (*Empty) Descriptor ¶
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
type FiatShamir ¶
type FiatShamir struct { // Used for example for SchnorrProof and RepresentationProof where challenge is constructed by prover // using hash function. // Note that here we don't have A and B as in SchnorrProofRandomData because usually when proving // the knowledge of X such that A^X = B, A is known beforehand (as part of public key). // So here ProofRandomData is actually only X. ProofRandomData []byte `protobuf:"bytes,1,opt,name=ProofRandomData,proto3" json:"ProofRandomData,omitempty"` Challenge []byte `protobuf:"bytes,2,opt,name=Challenge,proto3" json:"Challenge,omitempty"` ProofData [][]byte `protobuf:"bytes,3,rep,name=ProofData,proto3" json:"ProofData,omitempty"` }
func (*FiatShamir) Descriptor ¶
func (*FiatShamir) Descriptor() ([]byte, []int)
func (*FiatShamir) GetChallenge ¶
func (m *FiatShamir) GetChallenge() []byte
func (*FiatShamir) GetProofData ¶
func (m *FiatShamir) GetProofData() [][]byte
func (*FiatShamir) GetProofRandomData ¶
func (m *FiatShamir) GetProofRandomData() []byte
func (*FiatShamir) ProtoMessage ¶
func (*FiatShamir) ProtoMessage()
func (*FiatShamir) Reset ¶
func (m *FiatShamir) Reset()
func (*FiatShamir) String ¶
func (m *FiatShamir) String() string
type FiatShamirAlsoNeg ¶
type FiatShamirAlsoNeg struct { // For proofs where proof data can be negative (see RepresentationProof). ProofRandomData []byte `protobuf:"bytes,1,opt,name=ProofRandomData,proto3" json:"ProofRandomData,omitempty"` Challenge []byte `protobuf:"bytes,2,opt,name=Challenge,proto3" json:"Challenge,omitempty"` ProofData []string `protobuf:"bytes,3,rep,name=ProofData" json:"ProofData,omitempty"` }
func (*FiatShamirAlsoNeg) Descriptor ¶
func (*FiatShamirAlsoNeg) Descriptor() ([]byte, []int)
func (*FiatShamirAlsoNeg) GetChallenge ¶
func (m *FiatShamirAlsoNeg) GetChallenge() []byte
func (*FiatShamirAlsoNeg) GetProofData ¶
func (m *FiatShamirAlsoNeg) GetProofData() []string
func (*FiatShamirAlsoNeg) GetProofRandomData ¶
func (m *FiatShamirAlsoNeg) GetProofRandomData() []byte
func (*FiatShamirAlsoNeg) ProtoMessage ¶
func (*FiatShamirAlsoNeg) ProtoMessage()
func (*FiatShamirAlsoNeg) Reset ¶
func (m *FiatShamirAlsoNeg) Reset()
func (*FiatShamirAlsoNeg) String ¶
func (m *FiatShamirAlsoNeg) String() string
type IntAttribute ¶
type IntAttribute struct {
Attr *Attribute `protobuf:"bytes,1,opt,name=attr" json:"attr,omitempty"`
}
func (*IntAttribute) Descriptor ¶
func (*IntAttribute) Descriptor() ([]byte, []int)
func (*IntAttribute) GetAttr ¶
func (m *IntAttribute) GetAttr() *Attribute
func (*IntAttribute) ProtoMessage ¶
func (*IntAttribute) ProtoMessage()
func (*IntAttribute) Reset ¶
func (m *IntAttribute) Reset()
func (*IntAttribute) String ¶
func (m *IntAttribute) String() string
type IssuedCred ¶
type IssuedCred struct { Cred *Cred `protobuf:"bytes,1,opt,name=cred" json:"cred,omitempty"` AProof *FiatShamirAlsoNeg `protobuf:"bytes,2,opt,name=AProof" json:"AProof,omitempty"` }
func (*IssuedCred) Descriptor ¶
func (*IssuedCred) Descriptor() ([]byte, []int)
func (*IssuedCred) GetAProof ¶
func (m *IssuedCred) GetAProof() *FiatShamirAlsoNeg
func (*IssuedCred) GetCred ¶
func (m *IssuedCred) GetCred() *Cred
func (*IssuedCred) ProtoMessage ¶
func (*IssuedCred) ProtoMessage()
func (*IssuedCred) Reset ¶
func (m *IssuedCred) Reset()
func (*IssuedCred) String ¶
func (m *IssuedCred) String() string
type Params ¶
type Params struct { // There are only a few possibilities for RhoBitLen. 256 implies that the modulus // bit length is 2048 RhoBitLen int32 `protobuf:"varint,1,opt,name=RhoBitLen" json:"RhoBitLen,omitempty"` NLength int32 `protobuf:"varint,2,opt,name=NLength" json:"NLength,omitempty"` AttrBitLen int32 `protobuf:"varint,6,opt,name=AttrBitLen" json:"AttrBitLen,omitempty"` HashBitLen int32 `protobuf:"varint,7,opt,name=HashBitLen" json:"HashBitLen,omitempty"` // Fiat-Shamir SecParam int32 `protobuf:"varint,8,opt,name=SecParam" json:"SecParam,omitempty"` EBitLen int32 `protobuf:"varint,9,opt,name=EBitLen" json:"EBitLen,omitempty"` E1BitLen int32 `protobuf:"varint,10,opt,name=E1BitLen" json:"E1BitLen,omitempty"` // from VBitLen int32 `protobuf:"varint,11,opt,name=VBitLen" json:"VBitLen,omitempty"` ChallengeSpace int32 `protobuf:"varint,12,opt,name=ChallengeSpace" json:"ChallengeSpace,omitempty"` }
func (*Params) Descriptor ¶
func (*Params) GetAttrBitLen ¶
func (*Params) GetChallengeSpace ¶
func (*Params) GetE1BitLen ¶
func (*Params) GetEBitLen ¶
func (*Params) GetHashBitLen ¶
func (*Params) GetNLength ¶
func (*Params) GetRhoBitLen ¶
func (*Params) GetSecParam ¶
func (*Params) GetVBitLen ¶
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
type PedersenParams ¶
type PedersenParams struct { SchnorrGroup *SchnorrGroup `protobuf:"bytes,1,opt,name=schnorrGroup" json:"schnorrGroup,omitempty"` H []byte `protobuf:"bytes,2,opt,name=h,proto3" json:"h,omitempty"` }
func (*PedersenParams) Descriptor ¶
func (*PedersenParams) Descriptor() ([]byte, []int)
func (*PedersenParams) GetH ¶
func (m *PedersenParams) GetH() []byte
func (*PedersenParams) GetSchnorrGroup ¶
func (m *PedersenParams) GetSchnorrGroup() *SchnorrGroup
func (*PedersenParams) ProtoMessage ¶
func (*PedersenParams) ProtoMessage()
func (*PedersenParams) Reset ¶
func (m *PedersenParams) Reset()
func (*PedersenParams) String ¶
func (m *PedersenParams) String() string
type PubKey ¶
type PubKey struct { N []byte `protobuf:"bytes,1,opt,name=n,proto3" json:"n,omitempty"` S []byte `protobuf:"bytes,2,opt,name=s,proto3" json:"s,omitempty"` Z []byte `protobuf:"bytes,3,opt,name=z,proto3" json:"z,omitempty"` RsKnown [][]byte `protobuf:"bytes,4,rep,name=rsKnown,proto3" json:"rsKnown,omitempty"` RsCommitted [][]byte `protobuf:"bytes,5,rep,name=rsCommitted,proto3" json:"rsCommitted,omitempty"` RsHidden [][]byte `protobuf:"bytes,6,rep,name=rsHidden,proto3" json:"rsHidden,omitempty"` PedersenParams *PedersenParams `protobuf:"bytes,7,opt,name=pedersenParams" json:"pedersenParams,omitempty"` N1 []byte `protobuf:"bytes,8,opt,name=n1,proto3" json:"n1,omitempty"` G []byte `protobuf:"bytes,9,opt,name=g,proto3" json:"g,omitempty"` H []byte `protobuf:"bytes,10,opt,name=h,proto3" json:"h,omitempty"` }
func (*PubKey) Descriptor ¶
func (*PubKey) GetPedersenParams ¶
func (m *PubKey) GetPedersenParams() *PedersenParams
func (*PubKey) GetRsCommitted ¶
func (*PubKey) GetRsHidden ¶
func (*PubKey) GetRsKnown ¶
func (*PubKey) ProtoMessage ¶
func (*PubKey) ProtoMessage()
type PublicParams ¶
type PublicParams struct { PubKey *PubKey `protobuf:"bytes,1,opt,name=pubKey" json:"pubKey,omitempty"` Params *Params `protobuf:"bytes,2,opt,name=params" json:"params,omitempty"` CredStructure *CredStructure `protobuf:"bytes,3,opt,name=credStructure" json:"credStructure,omitempty"` }
func (*PublicParams) Descriptor ¶
func (*PublicParams) Descriptor() ([]byte, []int)
func (*PublicParams) GetCredStructure ¶
func (m *PublicParams) GetCredStructure() *CredStructure
func (*PublicParams) GetParams ¶
func (m *PublicParams) GetParams() *Params
func (*PublicParams) GetPubKey ¶
func (m *PublicParams) GetPubKey() *PubKey
func (*PublicParams) ProtoMessage ¶
func (*PublicParams) ProtoMessage()
func (*PublicParams) Reset ¶
func (m *PublicParams) Reset()
func (*PublicParams) String ¶
func (m *PublicParams) String() string
type Request ¶
type Request struct { // Types that are valid to be assigned to Type: // *Request_Empty // *Request_RegKey // *Request_CredIssue // *Request_CredProve Type isRequest_Type `protobuf_oneof:"type"` }
func (*Request) Descriptor ¶
func (*Request) GetCredIssue ¶
func (m *Request) GetCredIssue() *CredIssueRequest
func (*Request) GetCredProve ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
type Request_CredIssue ¶
type Request_CredIssue struct {
CredIssue *CredIssueRequest `protobuf:"bytes,3,opt,name=credIssue,oneof"`
}
type Request_CredProve ¶
type Request_CredProve struct {
CredProve *CredProof `protobuf:"bytes,4,opt,name=credProve,oneof"`
}
type Request_Empty ¶
type Request_Empty struct {
Empty *Empty `protobuf:"bytes,1,opt,name=empty,oneof"`
}
type Request_RegKey ¶
type Request_RegKey struct {
RegKey string `protobuf:"bytes,2,opt,name=regKey,oneof"`
}
type Response ¶
type Response struct { // Types that are valid to be assigned to Type: // *Response_Nonce // *Response_IssuedCred // *Response_SessionKey Type isResponse_Type `protobuf_oneof:"type"` }
func (*Response) Descriptor ¶
func (*Response) GetIssuedCred ¶
func (m *Response) GetIssuedCred() *IssuedCred
func (*Response) GetSessionKey ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
type Response_IssuedCred ¶
type Response_IssuedCred struct {
IssuedCred *IssuedCred `protobuf:"bytes,2,opt,name=issuedCred,oneof"`
}
type Response_Nonce ¶
type Response_Nonce struct {
Nonce []byte `protobuf:"bytes,1,opt,name=nonce,proto3,oneof"`
}
type Response_SessionKey ¶
type Response_SessionKey struct {
SessionKey string `protobuf:"bytes,3,opt,name=sessionKey,oneof"`
}
type SchnorrGroup ¶
type SchnorrGroup struct { P []byte `protobuf:"bytes,2,opt,name=p,proto3" json:"p,omitempty"` G []byte `protobuf:"bytes,3,opt,name=g,proto3" json:"g,omitempty"` Q []byte `protobuf:"bytes,4,opt,name=q,proto3" json:"q,omitempty"` }
func (*SchnorrGroup) Descriptor ¶
func (*SchnorrGroup) Descriptor() ([]byte, []int)
func (*SchnorrGroup) GetG ¶
func (m *SchnorrGroup) GetG() []byte
func (*SchnorrGroup) GetP ¶
func (m *SchnorrGroup) GetP() []byte
func (*SchnorrGroup) GetQ ¶
func (m *SchnorrGroup) GetQ() []byte
func (*SchnorrGroup) ProtoMessage ¶
func (*SchnorrGroup) ProtoMessage()
func (*SchnorrGroup) Reset ¶
func (m *SchnorrGroup) Reset()
func (*SchnorrGroup) String ¶
func (m *SchnorrGroup) String() string
type StringAttribute ¶
type StringAttribute struct {
Attr *Attribute `protobuf:"bytes,2,opt,name=attr" json:"attr,omitempty"`
}
func (*StringAttribute) Descriptor ¶
func (*StringAttribute) Descriptor() ([]byte, []int)
func (*StringAttribute) GetAttr ¶
func (m *StringAttribute) GetAttr() *Attribute
func (*StringAttribute) ProtoMessage ¶
func (*StringAttribute) ProtoMessage()
func (*StringAttribute) Reset ¶
func (m *StringAttribute) Reset()
func (*StringAttribute) String ¶
func (m *StringAttribute) String() string
Click to show internal directories.
Click to hide internal directories.