Documentation
¶
Index ¶
- Constants
- type AggregatedProof
- type Attr
- type ByCredDef
- type BySchema
- type CredentialDefinitionIDsResult
- type CredentialStatus
- type CryptoProof
- type Identifier
- type IndyAttributeValue
- type IndyCredential
- type IndyCredentialOffer
- type IndyCredentialValues
- type IndyProof
- type IndyProofRequest
- type IndyProofRequestAttr
- type IndyProofRequestPredicate
- type IndyRequestedAttribute
- type IndyRequestedAttributeInfo
- type IndyRequestedCredentials
- type IndyRequestedPredicateInfo
- type IndyRequestedProof
- type NonRevocProof
- type NonRevokedInterval
- type PrimaryEqualProof
- type PrimaryPredicateInequalityProof
- type PrimaryProof
- type ProofRequestWebRequest
- type ProvingCredentialKey
- type RevealedAttributeGroupInfo
- type RevealedAttributeInfo
- type SchemaIDsResult
- type SubProof
- type SubProofReferent
- type TranscriptCredential
Constants ¶
View Source
const ( CredentialOffered = "offered" CredentialIssued = "issued" CredentialAccepted = "accepted" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AggregatedProof ¶
type ByCredDef ¶
func ByCredDefID ¶
func ByCredDefIssuerDID ¶
func ByCredDefSchemaID ¶
func ByCredDefSchemaName ¶
func ByCredDefVersion ¶
type BySchema ¶
func BySchemaID ¶
func BySchemaIssuerDID ¶
func BySchemaName ¶
func BySchemaVersion ¶
type CredentialDefinitionIDsResult ¶
type CredentialDefinitionIDsResult struct {
CredentialDefinitionIDs []string `json:"credential_definition_ids"`
}
type CredentialStatus ¶
type CryptoProof ¶
type CryptoProof struct { Proofs []*SubProof `json:"proofs"` Aggregated *AggregatedProof `json:"aggregated_proof"` }
type Identifier ¶
type IndyAttributeValue ¶
type IndyCredential ¶
type IndyCredential struct { SchemaID string `json:"schema_id"` CredDefID string `json:"cred_def_id"` RevRegID string `json:"rev_reg_id"` Signature json.RawMessage `json:"signature"` SignatureCorrectnessProof json.RawMessage `json:"signature_correctness_proof"` Values IndyCredentialValues `json:"values"` }
type IndyCredentialOffer ¶
type IndyCredentialValues ¶
type IndyCredentialValues map[string]*IndyAttributeValue
type IndyProof ¶
type IndyProof struct { Proof json.RawMessage `json:"proof"` RequestedProof *IndyRequestedProof `json:"requested_proof"` Identifiers []*Identifier `json:"identifiers"` }
type IndyProofRequest ¶
type IndyProofRequest struct { Name string `json:"name"` Version string `json:"version"` Nonce string `json:"nonce"` RequestedAttributes map[string]IndyProofRequestAttr `json:"requested_attributes"` RequestedPredicates map[string]IndyProofRequestPredicate `json:"requested_predicates"` }
type IndyProofRequestAttr ¶
type IndyProofRequestAttr struct { Name string `json:"name"` Names []string `json:"names"` Restrictions interface{} `json:"restrictions,omitempty"` NonRevoked NonRevokedInterval `json:"non_revoked"` }
type IndyProofRequestPredicate ¶
type IndyProofRequestPredicate struct { Name string `json:"name"` PType string `json:"p_type"` PValue int32 `json:"p_value"` Restrictions interface{} `json:"restrictions"` NonRevoked NonRevokedInterval `json:"non_revoked"` }
type IndyRequestedAttribute ¶
type IndyRequestedAttributeInfo ¶
type IndyRequestedAttributeInfo struct { AttrReferent string `json:"attr_referent"` AttributeInfo *IndyProofRequestAttr `json:"attribute_info"` Revealed bool `json:"revealed"` }
type IndyRequestedCredentials ¶
type IndyRequestedCredentials struct { SelfAttestedAttrs map[string]string `json:"self_attested_attrs"` RequestedAttributes map[string]*IndyRequestedAttribute `json:"requested_attributes"` RequestedPredicates map[string]ProvingCredentialKey `json:"requested_predicates"` }
type IndyRequestedPredicateInfo ¶
type IndyRequestedPredicateInfo struct { PredicateReferent string `json:"predicate_referent"` PredicateInfo *IndyProofRequestPredicate `json:"predicate_info"` }
type IndyRequestedProof ¶
type IndyRequestedProof struct { RevealedAttrs map[string]*RevealedAttributeInfo `json:"revealed_attrs"` RevealedAttrGroups map[string]*RevealedAttributeGroupInfo `json:"revealed_attr_groups"` SelfAttestedAttrs map[string]string `json:"self_attested_attrs"` UnrevealedAttrs map[string]*SubProofReferent `json:"unrevealed_attrs"` Predicates map[string]*SubProofReferent `json:"predicates"` }
type NonRevocProof ¶
type NonRevocProof struct { }
type NonRevokedInterval ¶
type PrimaryEqualProof ¶
type PrimaryProof ¶
type PrimaryProof struct { EqProof PrimaryEqualProof `json:"eq_proof"` NeProof []*PrimaryPredicateInequalityProof `json:"ne_proof"` }
type ProofRequestWebRequest ¶
type ProofRequestWebRequest struct { ConnectionID string `json:"connection_id"` ProofRequest *IndyProofRequest `json:"proof_request"` }
type ProvingCredentialKey ¶
type RevealedAttributeGroupInfo ¶
type RevealedAttributeGroupInfo struct { SubProofIndex int32 `json:"sub_proof_index"` Values map[string]*IndyAttributeValue }
type RevealedAttributeInfo ¶
type SchemaIDsResult ¶
type SchemaIDsResult struct {
SchemaIDs []string `json:"schema_ids"`
}
type SubProof ¶
type SubProof struct { Primary *PrimaryProof `json:"primary_proof"` NonRevocProof *NonRevocProof `json:"non_revoc_proof"` }
func (*SubProof) RevealedAttrs ¶
type SubProofReferent ¶
type SubProofReferent struct {
SubProofIndex int32 `json:"sub_proof_index"`
}
type TranscriptCredential ¶
func (*TranscriptCredential) MarshalAttrs ¶
func (r *TranscriptCredential) MarshalAttrs() []*Attr
Click to show internal directories.
Click to hide internal directories.