Documentation
¶
Index ¶
- Constants
- Variables
- func CreateWebhooksHandler(handlers WebhookHandlers) func(w http.ResponseWriter, r *http.Request)
- func SchemaIDToParts(schemaID string) (string, string, string, string, error)
- type AccumKey
- type AttachDecorator
- type Attachment
- type BasicMessagesEvent
- type Client
- func (c *Client) AcceptInvitation(connectionID string) (Connection, error)
- func (c *Client) AcceptRequest(connectionID string) (Connection, error)
- func (c *Client) AutoRespondCredentialOffer() *Client
- func (c *Client) ClearPendingRevocations(revocations PendingRevocations) (PendingRevocations, error)
- func (c *Client) CreateCredentialDefinition(tag string, supportRevocation bool, revocationRegistrySize int, ...) (string, error)
- func (c *Client) CreateCredentialExchangeRecord(request CreateCredentialExchangeRecordRequest) (CredentialExchangeRecord, error)
- func (c *Client) CreateCredentialExchangeRecordV2(credentialPreview CredentialPreviewV2, credentialDefinitionID string, ...) (CredentialExchangeRecordResult, error)
- func (c *Client) CreateInvitation(alias string, autoAccept bool, multiUse bool, public bool) (CreateInvitationResponse, error)
- func (c *Client) CreateLocalDID() (DID, error)
- func (c *Client) CreateOutOfBandCredential(request CreateCredentialExchangeRecordRequest) (OutOfBandCredential, error)
- func (c *Client) CreateOutOfBandInvitation(request CreateOutOfBandInvitationRequest, autoAccept bool, multiUse bool) (OutOfBandInvitationResponse, error)
- func (c *Client) CreatePresentationRequest(request PresentationRequestRequest) (PresentationExchangeRecord, error)
- func (c *Client) CreateRevocationRegistry(credentialDefinitionID string, maxCredNum int) (RevocationRegistry, error)
- func (c *Client) CredentialMimeTypes(credentialID string) (map[string]string, error)
- func (c *Client) DIDExchangeAcceptInvitation(connectionID string, myEndpoint string, myLabel string) (Connection, error)
- func (c *Client) DIDExchangeAcceptRequest(connectionID string, myEndpoint string) (Connection, error)
- func (c *Client) DisableTracing() *Client
- func (c *Client) DownloadRegistryTailsFile(revocationRegistryID string) ([]byte, error)
- func (c *Client) EnableTracing() *Client
- func (c *Client) Features() ([]string, error)
- func (c *Client) FindMatchingCredentials(request PresentationRequest) (map[string]PresentationProofAttribute, error)
- func (c *Client) GetActiveRevocationRegistry(credentialDefinitionID string) (RevocationRegistry, error)
- func (c *Client) GetConnection(connectionID string) (Connection, error)
- func (c *Client) GetCredential(credentialID string) (Credential, error)
- func (c *Client) GetCredentialDefinition(credentialDefinitionID string) (CredentialDefinition, error)
- func (c *Client) GetCredentialExchange(credentialExchangeID string) (CredentialExchangeRecord, error)
- func (c *Client) GetCredentialExchangeV2(credentialExchangeID string) (CredentialExchangeRecordResult, error)
- func (c *Client) GetCredentialRevocationStatus(credentialExchangeID string, credentialRevocationID string, ...) (CredentialRevocationRecord, error)
- func (c *Client) GetCredentials(max int, index int, wql string) ([]Credential, error)
- func (c *Client) GetDIDEndpointFromLedger(did string, endpointType string) (string, error)
- func (c *Client) GetDIDEndpointFromWallet(did string) (string, error)
- func (c *Client) GetDIDRoleFromLedger(did string) (string, error)
- func (c *Client) GetDIDVerkeyFromLedger(did string) (string, error)
- func (c *Client) GetNumberOfIssuedCredentials(revocationRegistryID string) (int, error)
- func (c *Client) GetPresentationCredentialsByID(presentationExchangeID string, count int, wql string, ...) ([]PresentationCredential, error)
- func (c *Client) GetPresentationExchangeByID(presentationExchangeID string) (PresentationExchangeRecord, error)
- func (c *Client) GetPublicDID() (DID, error)
- func (c *Client) GetRevocationRegistry(revocationRegistryID string) (RevocationRegistry, error)
- func (c *Client) GetSchema(schemaID string) (Schema, error)
- func (c *Client) IsAlive() (bool, error)
- func (c *Client) IsCredentialRevoked(credentialID string) (bool, error)
- func (c *Client) IsReady() (bool, error)
- func (c *Client) IssueCredential(connectionID string, credentialPreview CredentialPreview, comment string, ...) (CredentialExchangeRecord, error)
- func (c *Client) IssueCredentialByID(credentialExchangeID string, comment string) (CredentialExchangeRecord, error)
- func (c *Client) IssueCredentialByIDV2(credentialExchangeID string, comment string) (CredentialExchangeRecordResult, error)
- func (c *Client) IssueCredentialV2(connectionID string, credentialPreview CredentialPreviewV2, comment string, ...) (CredentialExchangeRecordResult, error)
- func (c *Client) OfferCredential(connectionID string, credentialPreview CredentialPreview, ...) (CredentialExchangeRecord, error)
- func (c *Client) OfferCredentialByID(credentialExchangeID string) (CredentialExchangeRecord, error)
- func (c *Client) OfferCredentialByIDV2(credentialExchangeID string) (CredentialExchangeRecordResult, error)
- func (c *Client) OfferCredentialV2(connectionID string, credentialPreview CredentialPreviewV2, ...) (CredentialExchangeRecordResult, error)
- func (c *Client) Plugins() ([]string, error)
- func (c *Client) PreserveExchangeRecords() *Client
- func (c *Client) ProposeCredential(connectionID string, credentialPreview CredentialPreview, comment string, ...) (CredentialExchangeRecord, error)
- func (c *Client) ProposeCredentialV2(connectionID string, credentialPreview CredentialPreviewV2, comment string, ...) (CredentialExchangeRecordResult, error)
- func (c *Client) PublishRevocationRegistryDefinition(revocationRegistryID string) (RevocationRegistry, error)
- func (c *Client) PublishRevocationRegistryEntry(revocationRegistryID string) (RevocationRegistry, error)
- func (c *Client) PublishRevocations(revocations PendingRevocations) error
- func (c *Client) QueryConnections(params *QueryConnectionsParams) ([]Connection, error)
- func (c *Client) QueryCredentialDefinitions(params QueryCredentialDefinitionsParams) ([]string, error)
- func (c *Client) QueryCredentialExchange(params QueryCredentialExchangeParams) ([]CredentialExchangeRecord, error)
- func (c *Client) QueryCredentialExchangeV2(params QueryCredentialExchangeParamsV2) ([]CredentialExchangeRecordResult, error)
- func (c *Client) QueryDIDs(params QueryDIDsParams) ([]DID, error)
- func (c *Client) QueryPresentationExchange(params QueryPresentationExchangeParams) ([]PresentationExchangeRecord, error)
- func (c *Client) QueryRevocationRegistries(credentialDefinitionID string, state string) ([]string, error)
- func (c *Client) QuerySchemas(params QuerySchemasParams) ([]string, error)
- func (c *Client) ReceiveInvitation(invitation Invitation, autoAccept bool) (Connection, error)
- func (c *Client) ReceiveOutOfBandInvitation(invitation OutOfBandInvitation, autoAccept bool) (Connection, error)
- func (c *Client) RegisterSchema(name string, version string, attributes []string) (Schema, error)
- func (c *Client) RemoveConnection(connectionID string) error
- func (c *Client) RemoveCredential(credentialID string) error
- func (c *Client) RemoveCredentialExchange(credentialExchangeID string) error
- func (c *Client) RemoveCredentialExchangeV2(credentialExchangeID string) error
- func (c *Client) RemovePresentationExchangeByID(presentationExchangeID string) error
- func (c *Client) ReportCredentialExchangeProblem(credentialExchangeID string, message string) error
- func (c *Client) ReportCredentialExchangeProblemV2(credentialExchangeID string, message string) error
- func (c *Client) RequestCredentialByID(credentialExchangeID string) (CredentialExchangeRecord, error)
- func (c *Client) RequestCredentialByIDV2(credentialExchangeID string) (CredentialExchangeRecordResult, error)
- func (c *Client) ResetStatistics() error
- func (c *Client) RevokeIssuedCredential(credentialExchangeID string, credentialRevocationID string, ...) error
- func (c *Client) RotateKeypair(did string) error
- func (c *Client) SendBasicMessage(connectionID string, message string) error
- func (c *Client) SendPing(connectionID string) (Thread, error)
- func (c *Client) SendPresentationByID(presentationExchangeID string, proof PresentationProof) (PresentationExchangeRecord, error)
- func (c *Client) SendPresentationProposal(request PresentationProposalRequest) (PresentationExchangeRecord, error)
- func (c *Client) SendPresentationRequest(request PresentationRequestRequest) (PresentationExchangeRecord, error)
- func (c *Client) SendPresentationRequestByID(presentationExchangeID string, request PresentationRequestRequest) (PresentationExchangeRecord, error)
- func (c *Client) SetAPIKey(apiKey string) *Client
- func (c *Client) SetDIDEndpointInWallet(did string, endpoint string, endpointType string) error
- func (c *Client) SetPublicDID(did string) (DID, error)
- func (c *Client) SetRevocationRegistryState(revocationRegistryID string, state string) (RevocationRegistry, error)
- func (c *Client) Shutdown() error
- func (c *Client) Status() (Status, error)
- func (c *Client) StoreCredentialByID(credentialExchangeID string, credentialID string) (CredentialExchangeRecord, error)
- func (c *Client) StoreCredentialByIDV2(credentialExchangeID string, credentialID string) (CredentialExchangeRecordResult, error)
- func (c *Client) UpdateRevocationRegistryTailsURI(revocationRegistryID string, tailsPublicURI string) (RevocationRegistry, error)
- func (c *Client) UploadRegistryTailsFile(revocationRegistryID string) error
- func (c *Client) VerifyPresentationByID(presentationExchangeID string) (PresentationExchangeRecord, error)
- type Connection
- type CreateCredentialExchangeRecordRequest
- type CreateInvitationResponse
- type CreateOutOfBandInvitationRequest
- type Credential
- type CredentialDefinition
- type CredentialDefinitionValue
- type CredentialExchangeDIF
- type CredentialExchangeIndy
- type CredentialExchangeRecord
- type CredentialExchangeRecordResult
- type CredentialExchangeRecordV2
- type CredentialIssue
- type CredentialOffer
- type CredentialOfferMap
- type CredentialOfferV2
- type CredentialPreview
- type CredentialPreviewAttribute
- type CredentialPreviewAttributeV2
- type CredentialPreviewV2
- type CredentialProposal
- type CredentialProposalV2
- type CredentialRequest
- type CredentialRequestMetadata
- type CredentialRequestMetadataV2
- type CredentialRequestV2
- type CredentialRevocationRecord
- type DID
- type DIDRole
- type Filter
- type FilterAttach
- type Format
- type IndyFilter
- type Invitation
- type NonRevoked
- type OfferAttach
- type OutOfBandCredential
- type OutOfBandEvent
- type OutOfBandInvitation
- type OutOfBandInvitationResponse
- type PendingRevocations
- type PingEvent
- type Predicate
- type PredicateType
- type Presentation
- type PresentationAttribute
- type PresentationCredential
- type PresentationExchangeRecord
- type PresentationPreview
- type PresentationProof
- type PresentationProofAttribute
- type PresentationProofPredicate
- type PresentationProposalMap
- type PresentationProposalRequest
- type PresentationRequest
- type PresentationRequestRequest
- type Primary
- type ProblemReportEvent
- type ProofRequest
- type PublicKeys
- type QueryConnectionsParams
- type QueryCredentialDefinitionsParams
- type QueryCredentialExchangeParams
- type QueryCredentialExchangeParamsV2
- type QueryDIDsParams
- type QueryPresentationExchangeParams
- type QuerySchemasParams
- type R
- type RawCredential
- type RegisterDIDResponse
- type RequestedAttribute
- type RequestedPredicate
- type RequestedProof
- type Restrictions
- type RevealedAttr
- type Revocation
- type RevocationRegistry
- type RevocationRegistryDefinition
- type RevocationRegistryDefinitionValue
- type RevocationRegistryEntry
- type Schema
- type Service
- type Status
- type Thread
- type Value
- type WebhookHandlers
Constants ¶
const DIDExchangeV1 = "did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/didexchange/1.0"
Variables ¶
var DefaultHandshakeProtocols = []string{DIDExchangeV1}
var ErrInvalidSchemaID = errors.New("invalid schema ID")
Functions ¶
func CreateWebhooksHandler ¶
func CreateWebhooksHandler(handlers WebhookHandlers) func(w http.ResponseWriter, r *http.Request)
Types ¶
type AttachDecorator ¶
type Attachment ¶
type BasicMessagesEvent ¶
type Client ¶
func (*Client) AcceptInvitation ¶
func (c *Client) AcceptInvitation(connectionID string) (Connection, error)
func (*Client) AcceptRequest ¶
func (c *Client) AcceptRequest(connectionID string) (Connection, error)
func (*Client) AutoRespondCredentialOffer ¶
func (*Client) ClearPendingRevocations ¶
func (c *Client) ClearPendingRevocations(revocations PendingRevocations) (PendingRevocations, error)
ClearPendingRevocations Pass nil in case you want to clear all pending revocations
func (*Client) CreateCredentialDefinition ¶
func (*Client) CreateCredentialExchangeRecord ¶
func (c *Client) CreateCredentialExchangeRecord(request CreateCredentialExchangeRecordRequest) (CredentialExchangeRecord, error)
func (*Client) CreateCredentialExchangeRecordV2 ¶
func (c *Client) CreateCredentialExchangeRecordV2( credentialPreview CredentialPreviewV2, credentialDefinitionID string, issuerDID string, schemaID string, comment string, ) (CredentialExchangeRecordResult, error)
func (*Client) CreateInvitation ¶
func (*Client) CreateLocalDID ¶
func (*Client) CreateOutOfBandCredential ¶
func (c *Client) CreateOutOfBandCredential(request CreateCredentialExchangeRecordRequest) (OutOfBandCredential, error)
func (*Client) CreateOutOfBandInvitation ¶
func (c *Client) CreateOutOfBandInvitation(request CreateOutOfBandInvitationRequest, autoAccept bool, multiUse bool) (OutOfBandInvitationResponse, error)
func (*Client) CreatePresentationRequest ¶
func (c *Client) CreatePresentationRequest(request PresentationRequestRequest) (PresentationExchangeRecord, error)
func (*Client) CreateRevocationRegistry ¶
func (c *Client) CreateRevocationRegistry(credentialDefinitionID string, maxCredNum int) (RevocationRegistry, error)
func (*Client) CredentialMimeTypes ¶
func (*Client) DIDExchangeAcceptInvitation ¶
func (*Client) DIDExchangeAcceptRequest ¶
func (c *Client) DIDExchangeAcceptRequest(connectionID string, myEndpoint string) (Connection, error)
func (*Client) DisableTracing ¶
func (*Client) DownloadRegistryTailsFile ¶
func (*Client) EnableTracing ¶
func (*Client) FindMatchingCredentials ¶
func (c *Client) FindMatchingCredentials(request PresentationRequest) (map[string]PresentationProofAttribute, error)
func (*Client) GetActiveRevocationRegistry ¶
func (c *Client) GetActiveRevocationRegistry(credentialDefinitionID string) (RevocationRegistry, error)
func (*Client) GetConnection ¶
func (c *Client) GetConnection(connectionID string) (Connection, error)
func (*Client) GetCredential ¶
func (c *Client) GetCredential(credentialID string) (Credential, error)
func (*Client) GetCredentialDefinition ¶
func (c *Client) GetCredentialDefinition(credentialDefinitionID string) (CredentialDefinition, error)
func (*Client) GetCredentialExchange ¶
func (c *Client) GetCredentialExchange(credentialExchangeID string) (CredentialExchangeRecord, error)
func (*Client) GetCredentialExchangeV2 ¶
func (c *Client) GetCredentialExchangeV2(credentialExchangeID string) (CredentialExchangeRecordResult, error)
func (*Client) GetCredentialRevocationStatus ¶
func (*Client) GetCredentials ¶
wql: https://ldej.nl/post/becoming-a-hyperledger-aries-developer-part-5-issue-credentials#wql-some-query-language https://github.com/hyperledger/aries-cloudagent-python/blob/master/aries_cloudagent/storage/basic.py#L135
func (*Client) GetDIDEndpointFromLedger ¶
available endpoint types: Endpoint, Profile, LinkedDomains
func (*Client) GetDIDEndpointFromWallet ¶
func (*Client) GetDIDRoleFromLedger ¶
Use DID instead of NYM, as NYM is outdated
func (*Client) GetDIDVerkeyFromLedger ¶
func (*Client) GetNumberOfIssuedCredentials ¶
func (*Client) GetPresentationCredentialsByID ¶
func (*Client) GetPresentationExchangeByID ¶
func (c *Client) GetPresentationExchangeByID(presentationExchangeID string) (PresentationExchangeRecord, error)
func (*Client) GetPublicDID ¶
func (*Client) GetRevocationRegistry ¶
func (c *Client) GetRevocationRegistry(revocationRegistryID string) (RevocationRegistry, error)
func (*Client) IsCredentialRevoked ¶
TODO from/to query params
func (*Client) IssueCredential ¶
func (c *Client) IssueCredential( connectionID string, credentialPreview CredentialPreview, comment string, credentialDefinitionID string, issuerDID string, schemaID string, ) (CredentialExchangeRecord, error)
IssueCredential issues a credential to the holder
func (*Client) IssueCredentialByID ¶
func (c *Client) IssueCredentialByID(credentialExchangeID string, comment string) (CredentialExchangeRecord, error)
IssueCredentialByID issues a credential to the holder based on a previously received request
func (*Client) IssueCredentialByIDV2 ¶
func (c *Client) IssueCredentialByIDV2(credentialExchangeID string, comment string) (CredentialExchangeRecordResult, error)
IssueCredentialByID issues a credential to the holder based on a previously received request
func (*Client) IssueCredentialV2 ¶
func (c *Client) IssueCredentialV2( connectionID string, credentialPreview CredentialPreviewV2, comment string, credentialDefinitionID string, issuerDID string, schemaID string, ) (CredentialExchangeRecordResult, error)
IssueCredential issues a credential to the holder
func (*Client) OfferCredential ¶
func (c *Client) OfferCredential( connectionID string, credentialPreview CredentialPreview, credentialDefinitionID string, comment string, ) (CredentialExchangeRecord, error)
OfferCredential sends to the holder what the issuer can offer TODO support payment decorator
func (*Client) OfferCredentialByID ¶
func (c *Client) OfferCredentialByID(credentialExchangeID string) (CredentialExchangeRecord, error)
OfferCredentialByID sends an offer to the holder based on a previously received proposal
func (*Client) OfferCredentialByIDV2 ¶
func (c *Client) OfferCredentialByIDV2(credentialExchangeID string) (CredentialExchangeRecordResult, error)
OfferCredentialByID sends an offer to the holder based on a previously received proposal
func (*Client) OfferCredentialV2 ¶
func (c *Client) OfferCredentialV2( connectionID string, credentialPreview CredentialPreviewV2, credentialDefinitionID string, comment string, ) (CredentialExchangeRecordResult, error)
OfferCredential sends to the holder what the issuer can offer TODO support payment decorator
func (*Client) PreserveExchangeRecords ¶
func (*Client) ProposeCredential ¶
func (c *Client) ProposeCredential( connectionID string, credentialPreview CredentialPreview, comment string, credentialDefinitionID string, issuerDID string, schemaID string, ) (CredentialExchangeRecord, error)
ProposeCredential tells the issuer what the holder hopes to receive
func (*Client) ProposeCredentialV2 ¶
func (c *Client) ProposeCredentialV2( connectionID string, credentialPreview CredentialPreviewV2, comment string, credentialDefinitionID string, issuerDID string, schemaID string, ) (CredentialExchangeRecordResult, error)
ProposeCredential tells the issuer what the holder hopes to receive
func (*Client) PublishRevocationRegistryDefinition ¶
func (c *Client) PublishRevocationRegistryDefinition(revocationRegistryID string) (RevocationRegistry, error)
func (*Client) PublishRevocationRegistryEntry ¶
func (c *Client) PublishRevocationRegistryEntry(revocationRegistryID string) (RevocationRegistry, error)
func (*Client) PublishRevocations ¶
func (c *Client) PublishRevocations(revocations PendingRevocations) error
PublishRevocations Pass nil in case you want to publish all pending revocations
func (*Client) QueryConnections ¶
func (c *Client) QueryConnections(params *QueryConnectionsParams) ([]Connection, error)
func (*Client) QueryCredentialDefinitions ¶
func (c *Client) QueryCredentialDefinitions(params QueryCredentialDefinitionsParams) ([]string, error)
func (*Client) QueryCredentialExchange ¶
func (c *Client) QueryCredentialExchange(params QueryCredentialExchangeParams) ([]CredentialExchangeRecord, error)
func (*Client) QueryCredentialExchangeV2 ¶
func (c *Client) QueryCredentialExchangeV2(params QueryCredentialExchangeParamsV2) ([]CredentialExchangeRecordResult, error)
func (*Client) QueryPresentationExchange ¶
func (c *Client) QueryPresentationExchange(params QueryPresentationExchangeParams) ([]PresentationExchangeRecord, error)
func (*Client) QueryRevocationRegistries ¶
func (*Client) QuerySchemas ¶
func (c *Client) QuerySchemas(params QuerySchemasParams) ([]string, error)
func (*Client) ReceiveInvitation ¶
func (c *Client) ReceiveInvitation(invitation Invitation, autoAccept bool) (Connection, error)
func (*Client) ReceiveOutOfBandInvitation ¶
func (c *Client) ReceiveOutOfBandInvitation(invitation OutOfBandInvitation, autoAccept bool) (Connection, error)
func (*Client) RegisterSchema ¶
func (*Client) RemoveConnection ¶
func (*Client) RemoveCredential ¶
func (*Client) RemoveCredentialExchange ¶
func (*Client) RemoveCredentialExchangeV2 ¶
func (*Client) RemovePresentationExchangeByID ¶
func (*Client) ReportCredentialExchangeProblem ¶
func (*Client) ReportCredentialExchangeProblemV2 ¶
func (*Client) RequestCredentialByID ¶
func (c *Client) RequestCredentialByID(credentialExchangeID string) (CredentialExchangeRecord, error)
RequestCredentialByID sends a credential request to the issuer based on a previously received offer
func (*Client) RequestCredentialByIDV2 ¶
func (c *Client) RequestCredentialByIDV2(credentialExchangeID string) (CredentialExchangeRecordResult, error)
RequestCredentialByID sends a credential request to the issuer based on a previously received offer
func (*Client) ResetStatistics ¶
func (*Client) RevokeIssuedCredential ¶
func (*Client) RotateKeypair ¶
func (*Client) SendBasicMessage ¶
func (*Client) SendPresentationByID ¶
func (c *Client) SendPresentationByID(presentationExchangeID string, proof PresentationProof) (PresentationExchangeRecord, error)
func (*Client) SendPresentationProposal ¶
func (c *Client) SendPresentationProposal(request PresentationProposalRequest) (PresentationExchangeRecord, error)
func (*Client) SendPresentationRequest ¶
func (c *Client) SendPresentationRequest(request PresentationRequestRequest) (PresentationExchangeRecord, error)
func (*Client) SendPresentationRequestByID ¶
func (c *Client) SendPresentationRequestByID(presentationExchangeID string, request PresentationRequestRequest) (PresentationExchangeRecord, error)
func (*Client) SetDIDEndpointInWallet ¶
func (*Client) SetRevocationRegistryState ¶
func (c *Client) SetRevocationRegistryState(revocationRegistryID string, state string) (RevocationRegistry, error)
func (*Client) StoreCredentialByID ¶
func (c *Client) StoreCredentialByID(credentialExchangeID string, credentialID string) (CredentialExchangeRecord, error)
StoreCredentialByID the holder stores a credential based on a previously received issued credential credentialID is optional: https://github.com/hyperledger/aries-cloudagent-python/issues/594#issuecomment-656113125
func (*Client) StoreCredentialByIDV2 ¶
func (c *Client) StoreCredentialByIDV2(credentialExchangeID string, credentialID string) (CredentialExchangeRecordResult, error)
StoreCredentialByID the holder stores a credential based on a previously received issued credential credentialID is optional: https://github.com/hyperledger/aries-cloudagent-python/issues/594#issuecomment-656113125
func (*Client) UpdateRevocationRegistryTailsURI ¶
func (c *Client) UpdateRevocationRegistryTailsURI(revocationRegistryID string, tailsPublicURI string) (RevocationRegistry, error)
func (*Client) UploadRegistryTailsFile ¶
func (*Client) VerifyPresentationByID ¶
func (c *Client) VerifyPresentationByID(presentationExchangeID string) (PresentationExchangeRecord, error)
type Connection ¶
type Connection struct { Accept string `json:"accept"` // auto / manual Alias string `json:"alias"` ConnectionID string `json:"connection_id"` CreatedAt string `json:"created_at"` ErrorMsg string `json:"error_msg"` InboundConnectionID string `json:"inbound_connection_id"` InvitationKey string `json:"invitation_key"` InvitationMode string `json:"invitation_mode"` // once / multi InvitationMessageID string `json:"invitation_msg_id"` MyDID string `json:"my_did"` RequestID string `json:"request_id"` RFC23State string `json:"rfc23_state"` RoutingState string `json:"routing_state"` State string `json:"state"` TheirDID string `json:"their_did"` TheirLabel string `json:"their_label"` TheirRole string `json:"their_role"` UpdatedAt string `json:"updated_at"` }
type CreateCredentialExchangeRecordRequest ¶
type CreateCredentialExchangeRecordRequest struct { CredentialDefinitionID string `json:"cred_def_id,omitempty"` CredentialPreview CredentialPreview `json:"credential_proposal"` // required IssuerDID string `json:"issuer_did,omitempty"` Comment string `json:"comment,omitempty"` SchemaID string `json:"schema_id,omitempty"` SchemaVersion string `json:"schema_version,omitempty"` SchemaIssuerDID string `json:"schema_issuer_did,omitempty"` SchemaName string `json:"schema_name,omitempty"` Trace bool `json:"trace,omitempty"` AutoRemove bool `json:"auto_remove,omitempty"` }
type CreateInvitationResponse ¶
type CreateInvitationResponse struct { ConnectionID string `json:"connection_id,omitempty"` InvitationURL string `json:"invitation_url,omitempty"` Invitation struct { Type string `json:"@type,omitempty"` ID string `json:"@id,omitempty"` DID string `json:"did,omitempty"` ImageURL string `json:"imageUrl,omitempty"` Label string `json:"label,omitempty"` RecipientKeys []string `json:"recipientKeys,omitempty"` RoutingKeys []string `json:"routingKeys,omitempty"` ServiceEndpoint string `json:"serviceEndpoint,omitempty"` } `json:"invitation,omitempty"` }
type CreateOutOfBandInvitationRequest ¶
type CreateOutOfBandInvitationRequest struct { // When I put something in Attachments it crashes, // the CredentialExchangeRecord or PresentationExchangeRecord should probably be in the right state Alias string `json:"alias"` MyLabel string `json:"my_label"` Attachments []Attachment `json:"attachments,omitempty"` HandshakeProtocols []string `json:"handshake_protocols"` MediationID string `json:"mediation_id,omitempty"` Metadata map[string]interface{} `json:"metadata,omitempty"` UsePublicDID bool `json:"use_public_did"` }
CreateOutOfBandInvitationRequest must have IncludeHandshake true or, Attachments should be filled, or both
type Credential ¶
type Credential struct { Referent string `json:"referent"` // Also know as CredentialID CredentialDefinitionID string `json:"cred_def_id"` CredentialRevokeID string `json:"cred_rev_id"` SchemaID string `json:"schema_id"` RevokeRegistryID string `json:"rev_reg_id"` Attributes map[string]string `json:"attrs"` }
type CredentialDefinition ¶
type CredentialDefinitionValue ¶
type CredentialDefinitionValue struct { Primary Primary `json:"primary"` Revocation Revocation `json:"revocation"` }
type CredentialExchangeDIF ¶
type CredentialExchangeIndy ¶
type CredentialExchangeIndy struct { CredentialExchangeIndyID string `json:"cred_ex_indy_id"` CreatedAt string `json:"created_at"` UpdatedAt string `json:"updated_at"` CredentialExchangeID string `json:"cred_ex_id"` RevocationRegistryID string `json:"rev_reg_id"` CredentialRequestMetadata struct { MasterSecretBlindingData struct { VPrime string `json:"v_prime"` VrPrime interface{} `json:"vr_prime"` } `json:"master_secret_blinding_data"` Nonce string `json:"nonce"` MasterSecretName string `json:"master_secret_name"` } `json:"cred_request_metadata"` }
type CredentialExchangeRecord ¶
type CredentialExchangeRecord struct { CredentialExchangeID string `json:"credential_exchange_id"` CredentialDefinitionID string `json:"credential_definition_id"` ConnectionID string `json:"connection_id"` ThreadID string `json:"thread_id"` ParentThreadID string `json:"parent_thread_id"` SchemaID string `json:"schema_id"` RevocationID string `json:"revocation_id"` RevocationRegistryID string `json:"revoc_reg_id"` State string `json:"state"` CredentialOffer CredentialOffer `json:"credential_offer"` CredentialOfferMap CredentialOfferMap `json:"credential_offer_dict"` CredentialProposalMap CredentialProposal `json:"credential_proposal_dict"` CredentialRequest CredentialRequest `json:"credential_request"` CredentialRequestMetadata CredentialRequestMetadata `json:"credential_request_metadata"` Credential Credential `json:"credential"` RawCredential RawCredential `json:"raw_credential"` Role string `json:"role"` Initiator string `json:"initiator"` CreatedAt string `json:"created_at"` UpdatedAt string `json:"updated_at"` ErrorMessage string `json:"error_msg"` Trace bool `json:"trace"` AutoOffer bool `json:"auto_offer"` AutoIssue bool `json:"auto_issue"` AutoRemove bool `json:"auto_remove"` }
This thing is so big that it deserves it's own file
type CredentialExchangeRecordResult ¶
type CredentialExchangeRecordResult struct { CredentialExchangeRecord CredentialExchangeRecordV2 `json:"cred_ex_record"` DIF CredentialExchangeDIF `json:"dif"` Indy CredentialExchangeIndy `json:"indy"` }
type CredentialExchangeRecordV2 ¶
type CredentialExchangeRecordV2 struct { CredentialExchangeID string `json:"cred_ex_id"` CredentialExchangeIDStored string `json:"cred_id_stored"` ConnectionID string `json:"conn_id"` ThreadID string `json:"thread_id"` ParentThreadID string `json:"parent_thread_id"` State string `json:"state"` CredentialPreview CredentialPreviewV2 `json:"cred_preview"` CredentialOffer CredentialOfferV2 `json:"cred_offer"` CredentialProposal CredentialProposalV2 `json:"cred_proposal"` CredentialRequest CredentialRequestV2 `json:"cred_request"` CredentialRequestMetadata CredentialRequestMetadataV2 `json:"cred_request_metadata"` CredentialIssue CredentialIssue `json:"cred_issue"` Role string `json:"role"` Initiator string `json:"initiator"` CreatedAt string `json:"created_at"` UpdatedAt string `json:"updated_at"` ErrorMessage string `json:"error_msg"` Trace bool `json:"trace"` AutoOffer bool `json:"auto_offer"` AutoIssue bool `json:"auto_issue"` AutoRemove bool `json:"auto_remove"` }
This thing is so big that it deserves it's own file
type CredentialIssue ¶
type CredentialIssue struct { Type string `json:"@type"` // did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/issue-credential/2.0/issue-credential ID string `json:"@id"` CredentialsAttach []AttachDecorator `json:"credentials~attach"` Formats []Format `json:"formats"` Comment string `json:"comment"` }
type CredentialOffer ¶
type CredentialOfferMap ¶
type CredentialOfferMap struct { Type string `json:"@type"` // did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/issue-credential/1.0/offer-credential ID string `json:"@id"` Thread Thread `json:"~thread"` CredentialPreview CredentialPreview `json:"credential_preview"` Comment string `json:"comment"` OffersAttach []OfferAttach `json:"offers~attach"` }
type CredentialOfferV2 ¶
type CredentialOfferV2 struct { Type string `json:"@type"` // did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/issue-credential/2.0/offer-credential ID string `json:"@id"` Thread Thread `json:"~thread"` CredentialPreview CredentialPreviewV2 `json:"credential_preview"` OffersAttach []AttachDecorator `json:"offers~attach"` Formats []Format `json:"formats"` }
type CredentialPreview ¶
type CredentialPreview struct { Type string `json:"@type"` Attributes []CredentialPreviewAttribute `json:"attributes"` }
func NewCredentialPreview ¶
func NewCredentialPreview(attributes []CredentialPreviewAttribute) CredentialPreview
type CredentialPreviewV2 ¶
type CredentialPreviewV2 struct { Type string `json:"@type"` // did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/issue-credential/2.0/credential-preview Attributes []CredentialPreviewAttributeV2 `json:"attributes"` }
func NewCredentialPreviewV2 ¶
func NewCredentialPreviewV2(attributes []CredentialPreviewAttributeV2) CredentialPreviewV2
type CredentialProposal ¶
type CredentialProposal struct { ID string `json:"@id"` Type string `json:"@type"` // did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/issue-credential/1.0/propose-credential CredentialDefinitionID string `json:"cred_def_id"` SchemaID string `json:"schema_id"` IssuerDID string `json:"issuer_did"` SchemaName string `json:"schema_name"` SchemaIssuerDID string `json:"schema_issuer_did"` SchemaVersion string `json:"schema_version"` Comment string `json:"comment"` CredentialPreview CredentialPreview `json:"credential_proposal"` }
type CredentialProposalV2 ¶
type CredentialProposalV2 struct { ID string `json:"@id"` Type string `json:"@type"` // did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/issue-credential/2.0/propose-credential FiltersAttach []FilterAttach `json:"filters~attach"` Comment string `json:"comment"` CredentialPreview CredentialPreviewV2 `json:"credential_proposal"` Formats []Format `json:"formats"` }
type CredentialRequest ¶
type CredentialRequest struct { CredentialDefinitionID string `json:"cred_def_id"` ProverDID string `json:"prover_did"` BlindedMs struct { U string `json:"u"` Ur string `json:"ur"` HiddenAttributes []string `json:"hidden_attributes"` CommittedAttributes struct { } `json:"committed_attributes"` // TODO } `json:"blinded_ms"` BlindedMsCorrectnessProof struct { C string `json:"c"` VDashCap string `json:"v_dash_cap"` MCaps struct { MasterSecret string `json:"master_secret"` } `json:"m_caps"` RCaps struct { } `json:"r_caps"` } `json:"blinded_ms_correctness_proof"` Nonce string `json:"nonce"` }
type CredentialRequestMetadata ¶
type CredentialRequestMetadata struct {
Description string `json:"description"`
}
type CredentialRequestMetadataV2 ¶
type CredentialRequestMetadataV2 struct {
Description string `json:"description"`
}
type CredentialRequestV2 ¶
type CredentialRequestV2 struct { Type string `json:"@type"` // did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/issue-credential/2.0/request-credential ID string `json:"@id"` Thread Thread `json:"~thread"` RequestsAttach []AttachDecorator `json:"requests~attach"` Formats []Format `json:"formats"` }
type CredentialRevocationRecord ¶
type CredentialRevocationRecord struct { CreatedAt string `json:"created_at"` UpdatedAt string `json:"updated_at"` CredentialDefinitionID string `json:"cred_def_id"` CredentialRevocationID string `json:"cred_rev_id"` RecordID string `json:"record_id"` RevocationRegistryID string `json:"rev_reg_id"` CredentialExchangeID string `json:"cred_ex_id"` State string `json:"state"` // issued/revoked }
type Filter ¶
type Filter struct { DIF map[string]string `json:"dif"` Indy IndyFilter `json:"indy"` }
type FilterAttach ¶
type IndyFilter ¶
type IndyFilter struct { CredentialDefinitionID string `json:"cred_def_id,omitempty"` IssuerDID string `json:"issuer_did,omitempty"` SchemaID string `json:"schema_id,omitempty"` SchemaName string `json:"schema_name,omitempty"` SchemaVersion string `json:"schema_version,omitempty"` SchemaIssuerDID string `json:"schema_issuer_did,omitempty"` }
type Invitation ¶
type Invitation struct { ID string `json:"@id,omitempty"` DID string `json:"did,omitempty"` ImageURL string `json:"imageUrl,omitempty"` Label string `json:"label,omitempty"` RecipientKeys []string `json:"recipientKeys,omitempty"` RoutingKeys []string `json:"routingKeys,omitempty"` ServiceEndpoint string `json:"serviceEndpoint,omitempty"` }
type NonRevoked ¶
type OfferAttach ¶
type OutOfBandCredential ¶
type OutOfBandCredential struct { ID string `json:"@id"` Type string `json:"@type"` Comment string `json:"comment"` Service Service `json:"~service"` CredentialPreview CredentialPreview `json:"credential_preview"` OffersAttach []OfferAttach `json:"offers~attach"` }
type OutOfBandEvent ¶
type OutOfBandEvent struct { InvitationID string `json:"invitation_id"` InvitationMessageID string `json:"invi_msg_id"` Invitation OutOfBandInvitation `json:"invitation"` State string `json:"state"` InvitationURL string `json:"invitation_url"` UpdatedAt string `json:"updated_at"` CreatedAt string `json:"created_at"` AutoAccept bool `json:"auto_accept"` MultiUse bool `json:"multi_use"` Trace bool `json:"trace"` }
type OutOfBandInvitation ¶
type OutOfBandInvitation struct { Type string `json:"@type"` // did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/out-of-band/1.0/invitation ID string `json:"@id"` Label string `json:"label"` HandshakeProtocols []string `json:"handshake_protocols"` // did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/didexchange/v1.0 Service []Service `json:"service"` ServiceBlocks []Service `json:"service_blocks,omitempty"` ServiceDIDs []string `json:"service_dids,omitempty"` }
type OutOfBandInvitationResponse ¶
type OutOfBandInvitationResponse struct { AutoAccept bool `json:"auto_accept"` InvitationMessageID string `json:"invi_msg_id"` UpdatedAt string `json:"updated_at"` State string `json:"state"` InvitationID string `json:"invitation_id"` InvitationURL string `json:"invitation_url"` Trace bool `json:"trace"` MultiUse bool `json:"multi_use"` CreatedAt string `json:"created_at"` Invitation OutOfBandInvitation `json:"invitation"` }
type PendingRevocations ¶
A map from revocation registry identifier to credential revocation identifiers For example:
map[string][]string{ "6i7GFi2cDx524ZNfxmGWcp:4:6i7GFi2cDx524ZNfxmGWcp:3:CL:165:default:CL_ACCUM:159875bc-a5c7-4d51-b5c0-b4782a01fb94": ["1"]. }
type Predicate ¶
type Predicate struct { Name string `json:"name"` CredentialDefinitionID string `json:"cred_def_id"` Predicate PredicateType `json:"predicate"` Threshold int `json:"threshold"` }
type PredicateType ¶
type PredicateType string
const ( PredicateLT PredicateType = "<" PredicateLTE PredicateType = "<=" PredicateGT PredicateType = ">" PredicateGTE PredicateType = ">=" )
type Presentation ¶
type Presentation struct { // Proof Proof `json:"proof"` // TODO RequestedProof RequestedProof `json:"requested_proof"` Identifiers []struct { SchemaID string `json:"schema_id"` CredentialDefinitionID string `json:"cred_def_id"` RevocationRegistryID string `json:"rev_reg_id"` Timestamp int `json:"timestamp"` } `json:"identifiers"` }
type PresentationAttribute ¶
type PresentationCredential ¶
type PresentationCredential struct { CredentialInfo struct { Referent string `json:"referent"` Attrs map[string]string `json:"attrs"` SchemaID string `json:"schema_id"` CredentialDefinitionID string `json:"cred_def_id"` RevocationRegistryID string `json:"rev_reg_id"` CredentialRevocationID string `json:"cred_rev_id"` } `json:"cred_info"` Interval struct { From int `json:"from"` To int `json:"to"` } `json:"interval"` PresentationReferents []string `json:"presentation_referents"` }
type PresentationExchangeRecord ¶
type PresentationExchangeRecord struct { PresentationExchangeID string `json:"presentation_exchange_id"` ConnectionID string `json:"connection_id"` ThreadID string `json:"thread_id"` State string `json:"state"` Initiator string `json:"initiator"` Role string `json:"role"` PresentationProposalDict PresentationProposalMap `json:"presentation_proposal_dict"` PresentationRequest PresentationRequest `json:"presentation_request"` PresentationRequestDict struct{} `json:"presentation_request_dict"` // TODO ? Presentation Presentation `json:"presentation"` Verified string `json:"verified"` CreatedAt string `json:"created_at"` UpdatedAt string `json:"updated_at"` ErrorMsg string `json:"error_msg"` AutoPresent bool `json:"auto_present"` Trace bool `json:"trace"` }
type PresentationPreview ¶
type PresentationPreview struct { Type string `json:"@type"` Attributes []PresentationAttribute `json:"attributes"` Predicates []Predicate `json:"predicates"` }
func NewPresentationPreview ¶
func NewPresentationPreview(attributes []PresentationAttribute, predicates []Predicate) PresentationPreview
type PresentationProof ¶
type PresentationProof struct { RequestedAttributes map[string]PresentationProofAttribute `json:"requested_attributes"` RequestedPredicates map[string]PresentationProofPredicate `json:"requested_predicates"` SelfAttestedAttributes map[string]string `json:"self_attested_attributes"` Trace bool `json:"trace"` }
func NewPresentationProof ¶
func NewPresentationProof( requestedAttributes map[string]PresentationProofAttribute, requestedPredicates map[string]PresentationProofPredicate, selfAttestedAttributes map[string]string, ) PresentationProof
type PresentationProposalMap ¶
type PresentationProposalMap struct { Type string `json:"@type"` // did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/present-proof/1.0/propose-presentation ThreadID string `json:"@id"` Comment string `json:"comment"` PresentationProposal PresentationPreview `json:"presentation_proposal"` }
type PresentationProposalRequest ¶
type PresentationProposalRequest struct { Comment string `json:"comment"` AutoPresent bool `json:"auto_present"` PresentationPreview PresentationPreview `json:"presentation_proposal"` ConnectionID string `json:"connection_id"` Trace bool `json:"trace"` }
type PresentationRequest ¶
type PresentationRequest struct { Name string `json:"name"` Version string `json:"version"` Nonce string `json:"nonce"` RequestedAttributes map[string]RequestedAttribute `json:"requested_attributes"` RequestedPredicates map[string]RequestedPredicate `json:"requested_predicates"` }
type PresentationRequestRequest ¶
type PresentationRequestRequest struct { Trace bool `json:"trace"` Comment string `json:"comment"` ConnectionID string `json:"connection_id"` ProofRequest ProofRequest `json:"proof_request"` }
type ProblemReportEvent ¶
type ProofRequest ¶
type ProofRequest struct { Name string `json:"name"` Nonce string `json:"nonce"` // TODO what is this nonce RequestedPredicates map[string]RequestedPredicate `json:"requested_predicates"` // cannot be nil RequestedAttributes map[string]RequestedAttribute `json:"requested_attributes"` // cannot be nil Version string `json:"version"` NonRevoked *NonRevoked `json:"non_revoked,omitempty"` }
func NewProofRequest ¶
func NewProofRequest( name string, nonce string, requestedPredicates map[string]RequestedPredicate, requestedAttributes map[string]RequestedAttribute, version string, nonRevoked *NonRevoked, ) ProofRequest
type PublicKeys ¶
type PublicKeys struct {
AccumKey AccumKey `json:"accumKey"`
}
type QueryConnectionsParams ¶
type QueryConnectionsParams struct { // Alias of connection invitation Alias string `json:"alias,omitempty"` // Initiator is Connection invitation initiator Initiator string `json:"initiator,omitempty"` // Invitation key InvitationKey string `json:"invitation_key,omitempty"` // MyDID is DID of the agent MyDID string `json:"my_did,omitempty"` // State of the connection invitation State string `json:"state"` // TheirDID is other party's DID TheirDID string `json:"their_did,omitempty"` // TheirRole is other party's role TheirRole string `json:"their_role,omitempty"` }
QueryConnectionsParams model
Parameters for querying connections
type QueryCredentialDefinitionsParams ¶
type QueryCredentialDefinitionsParams struct { CredentialDefinitionID string `json:"cred_def_id"` IssuerDID string `json:"issuer_did"` SchemaID string `json:"schema_id"` SchemaIssuerDID string `json:"schema_issuer_did"` SchemaName string `json:"schema_name"` SchemaVersion string `json:"schema_version"` }
type QueryDIDsParams ¶
type QueryDIDsParams DID
type QuerySchemasParams ¶
type RawCredential ¶
type RawCredential struct {
Description string `json:"raw_credential"`
}
type RegisterDIDResponse ¶
type RegisterDIDResponse struct { DID string `json:"did"` Seed string `json:"seed"` Verkey string `json:"verkey"` }
func RegisterDID ¶
type RequestedAttribute ¶
type RequestedAttribute struct { Restrictions []Restrictions `json:"restrictions"` // Required when using Names, otherwise empty slice instead of nil Name string `json:"name,omitempty"` // XOR with Names Names []string `json:"names,omitempty"` // XOR with Name | Requires non-empty restrictions NonRevoked NonRevoked `json:"non_revoked"` // Optional }
func NewRequestedAttribute ¶
func NewRequestedAttribute( restrictions *Restrictions, name string, names []string, nonRevoked NonRevoked, ) (RequestedAttribute, error)
type RequestedPredicate ¶
type RequestedPredicate struct { Restrictions []Restrictions `json:"restrictions"` // Required when using Names, otherwise empty slice instead of nil Name string `json:"name,omitempty"` // XOR with Names Names []string `json:"names,omitempty"` // XOR with Name | Requires non-empty restrictions PType PredicateType `json:"p_type"` PValue int `json:"p_value"` NonRevoked NonRevoked `json:"non_revoked"` // Optional }
func NewRequestedPredicate ¶
func NewRequestedPredicate( restrictions *Restrictions, name string, names []string, ptype PredicateType, pvalue int, nonRevoked NonRevoked, ) (RequestedPredicate, error)
type RequestedProof ¶
type RequestedProof struct { RevealedAttrs struct{} `json:"revealed_attrs"` RevealedAttrGroups map[string]RevealedAttr `json:"revealed_attr_groups"` SelfAttestedAttrs struct{} `json:"self_attested_attrs"` UnrevealedAttrs struct{} `json:"unrevealed_attrs"` Predicates struct{} `json:"predicates"` }
TODO
type Restrictions ¶
type Restrictions struct { SchemaVersion string `json:"schema_version,omitempty"` CredentialDefinitionID string `json:"cred_def_id,omitempty"` SchemaName string `json:"schema_name,omitempty"` SchemaIssuerDID string `json:"schema_issuer_did,omitempty"` IssuerDID string `json:"issuer_did,omitempty"` SchemaID string `json:"schema_id,omitempty"` }
func (Restrictions) IsEmpty ¶
func (r Restrictions) IsEmpty() bool
type RevealedAttr ¶
type Revocation ¶
type RevocationRegistry ¶
type RevocationRegistry struct { UpdatedAt string `json:"updated_at"` Type string `json:"revoc_def_type"` PendingPub []interface{} `json:"pending_pub"` CreatedAt string `json:"created_at"` Tag string `json:"tag"` RecordID string `json:"record_id"` CredDefID string `json:"cred_def_id"` TailsHash string `json:"tails_hash"` MaxCredNum int `json:"max_cred_num"` State string `json:"state"` IssuerDid string `json:"issuer_did"` Definition RevocationRegistryDefinition `json:"revoc_reg_def"` TailsLocalPath string `json:"tails_local_path"` Entry RevocationRegistryEntry `json:"revoc_reg_entry"` RevocationRegistryID string `json:"revoc_reg_id"` }
type RevocationRegistryDefinitionValue ¶
type RevocationRegistryDefinitionValue struct { IssuanceType string `json:"issuanceType"` MaxCredNum int `json:"maxCredNum"` PublicKeys PublicKeys `json:"publicKeys"` TailsHash string `json:"tailsHash"` TailsLocation string `json:"tailsLocation"` }
type RevocationRegistryEntry ¶
type RevocationRegistryEntry struct { Ver string `json:"ver"` Value RevocationRegistryDefinitionValue `json:"value"` }
type Service ¶
type Service struct { DID string `json:"did,omitempty"` ID string `json:"id,omitempty"` Type string `json:"type,omitempty"` // did-communication RecipientKeys []string `json:"recipientKeys,omitempty"` RoutingKeys []string `json:"routingKeys,omitempty"` ServiceEndpoint string `json:"serviceEndpoint,omitempty"` }
type Status ¶
type Status struct { Version string `json:"version"` Label string `json:"label"` Conductor struct { InSessions int `json:"in_sessions"` OutEncode int `json:"out_encode"` OutDeliver int `json:"out_deliver"` TaskActive int `json:"task_active"` TaskDone int `json:"task_done"` TaskFailed int `json:"task_failed"` TaskPending int `json:"task_pending"` } `json:"conductor"` }
type WebhookHandlers ¶
type WebhookHandlers struct { ConnectionsEventHandler func(event Connection) BasicMessagesEventHandler func(event BasicMessagesEvent) ProblemReportEventHandler func(event ProblemReportEvent) CredentialExchangeEventHandler func(event CredentialExchangeRecord) CredentialExchangeV2EventHandler func(event CredentialExchangeRecordV2) CredentialExchangeDIFEventHandler func(event CredentialExchangeDIF) CredentialExchangeIndyEventHandler func(event CredentialExchangeIndy) RevocationRegistryEventHandler func(event RevocationRegistry) PresentationExchangeEventHandler func(event PresentationExchangeRecord) CredentialRevocationEventHandler func(event CredentialRevocationRecord) PingEventHandler func(event PingEvent) OutOfBandEventHandler func(event OutOfBandEvent) }
Source Files
¶
- basicmessage.go
- client.go
- connection.go
- credential.go
- credential_definition.go
- credential_exchange.go
- credential_exchange_record.go
- credential_exchange_record_v2.go
- credential_exchange_v2.go
- did_exchange.go
- ledger.go
- out_of_band.go
- present_proof.go
- regex.go
- registerdid.go
- revocation_registry.go
- schema.go
- server.go
- wallet.go
- webhooks.go
Directories
¶
Path | Synopsis |
---|---|
examples
|
|
connecting
Module
|
|
connecting_v2
Module
|
|
issue_credential
Module
|
|
issue_credential_v2
Module
|
|
present_proof
Module
|
|
revocation
Module
|