Documentation ¶
Index ¶
- Constants
- type AcceptedCredential
- type CredentialOffer
- type CredentialOfferPayload
- type CredentialRetrieval
- func (c *CredentialRetrieval) AcceptOffer(groupId string, requestId string, acceptanceData OfferAcceptanceData) (*AcceptedCredential, error)
- func (c *CredentialRetrieval) CreateOffer(groupId string, offer CredentialOfferPayload) (string, error)
- func (c *CredentialRetrieval) GetOffers(groupId string) (*[]CredentialOffer, error)
- type CredentialVerification
- func (cv *CredentialVerification) AssignProof(requestId string, userId string) error
- func (cv *CredentialVerification) CreateProof(requestId string, filterResults []presentation.FilterResult, namespace string, ...) error
- func (cv *CredentialVerification) GetProofRequest(requestId string) (*PresentationRequest, error)
- func (cv *CredentialVerification) GetProofRequestByProofRequestId(proofRequestId string) (*PresentationRequest, error)
- type DIDComm
- type DIDCommConnection
- type DIDVerificationMethod
- type DataFetcher
- type DidDocument
- type GetCredentialModel
- type GetListCredentialModel
- type InvitationRequestBody
- type ListDidItem
- type ListDidResponse
- type NilType
- type OIDCProvider
- type OfferAcceptanceData
- type Plugin
- type PluginDiscovery
- type PresentationRequest
- type Proof
- type ServiceEndpoint
- type Signer
- type Storage
- type TransactionModel
Constants ¶
View Source
const ( NamespaceHeader string = "x-namespace" GroupHeader string = "x-group" DIDHeader string = "x-did" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AcceptedCredential ¶
type CredentialOffer ¶
type CredentialOffer struct { GroupId string `json:"groupId"` RequestId string `json:"requestId"` MetaData credential.IssuerMetadata `json:"metadata"` Offering credential.CredentialOfferParameters `json:"offering"` Status string `json:"status"` TimeStamp time.Time `json:"timestamp"` }
type CredentialOfferPayload ¶
type CredentialRetrieval ¶
type CredentialRetrieval struct {
// contains filtered or unexported fields
}
func GetCredentialRetrieval ¶
func GetCredentialRetrieval(client common.HttpClient) *CredentialRetrieval
func (*CredentialRetrieval) AcceptOffer ¶
func (c *CredentialRetrieval) AcceptOffer(groupId string, requestId string, acceptanceData OfferAcceptanceData) (*AcceptedCredential, error)
func (*CredentialRetrieval) CreateOffer ¶
func (c *CredentialRetrieval) CreateOffer(groupId string, offer CredentialOfferPayload) (string, error)
func (*CredentialRetrieval) GetOffers ¶
func (c *CredentialRetrieval) GetOffers(groupId string) (*[]CredentialOffer, error)
type CredentialVerification ¶
type CredentialVerification struct {
// contains filtered or unexported fields
}
func GetCredentialVerification ¶
func GetCredentialVerification(client common.HttpClient) *CredentialVerification
func (*CredentialVerification) AssignProof ¶
func (cv *CredentialVerification) AssignProof(requestId string, userId string) error
func (*CredentialVerification) CreateProof ¶
func (cv *CredentialVerification) CreateProof(requestId string, filterResults []presentation.FilterResult, namespace string, group string, signKey string, holderDid string) error
func (*CredentialVerification) GetProofRequest ¶
func (cv *CredentialVerification) GetProofRequest(requestId string) (*PresentationRequest, error)
func (*CredentialVerification) GetProofRequestByProofRequestId ¶
func (cv *CredentialVerification) GetProofRequestByProofRequestId(proofRequestId string) (*PresentationRequest, error)
type DIDComm ¶
type DIDComm struct {
// contains filtered or unexported fields
}
func GetDIDComm ¶
func GetDIDComm(client common.HttpClient) *DIDComm
func NewDIDComm ¶
func NewDIDComm(url string, httpClient common.HttpClient) *DIDComm
func (*DIDComm) BlockConnection ¶
func (*DIDComm) DeleteConnection ¶
func (*DIDComm) GetConnectionList ¶
func (s *DIDComm) GetConnectionList(accountID string, search string) ([]DIDCommConnection, error)
func (*DIDComm) GetInviteLink ¶
func (s *DIDComm) GetInviteLink(reqBody InvitationRequestBody) (string, error)
type DIDCommConnection ¶
type DIDCommConnection struct { RemoteDid string `json:"remoteDid"` RoutingKey string `json:"routingKey"` Protocol string `json:"protocol"` Topic string `json:"topic"` EventType string `json:"eventType"` Properties map[string]string `json:"properties"` RecipientDids []string `json:"recipientDids"` Added time.Time `json:"added"` Group string `json:"group"` }
type DIDVerificationMethod ¶
type DIDVerificationMethod struct { // ID of verification method. ID string // Type of verification method key. Type string // Controller of verification method specified as DID. Controller string // Public Key encoded in JWK format. PublicKeyJwk any }
DIDVerificationMethod Public Key represented as DID Verification Method.
type DataFetcher ¶
type DidDocument ¶
type DidDocument struct { // did of the document ID string // controller of the document Controller string // methods of the document VerificationMethod []*DIDVerificationMethod // service endpoints Service []*ServiceEndpoint }
DidDocument is the result type of the signer service didDoc method.
type GetCredentialModel ¶
type GetListCredentialModel ¶
type GetListCredentialModel struct { Groups []presentation.FilterResult `json:"groups"` Receipt string `json:"receipt"` }
type InvitationRequestBody ¶
type InvitationRequestBody struct { Protocol string `json:"protocol"` Topic string `json:"topic"` Group string `json:"group"` EventType string `json:"eventType"` Properties map[string]string `json:"properties"` }
RequestBody struct represents the JSON structure for the request body
type ListDidItem ¶
type ListDidResponse ¶
type ListDidResponse struct {
List []ListDidItem `json:"list"`
}
type OIDCProvider ¶
type OIDCProvider struct { *gocloak.GoCloak // contains filtered or unexported fields }
func GetOidcProvider ¶
func GetOidcProvider(f ...DataFetcher) *OIDCProvider
type OfferAcceptanceData ¶
type PluginDiscovery ¶
type PluginDiscovery struct {
// contains filtered or unexported fields
}
func GetPluginsDiscovery ¶
func GetPluginsDiscovery(client common.HttpClient) *PluginDiscovery
func (*PluginDiscovery) ListPlugins ¶
func (c *PluginDiscovery) ListPlugins() (*[]Plugin, error)
type PresentationRequest ¶
type PresentationRequest struct { Region string `json:"region"` Country string `json:"country"` Id string `json:"id"` RequestId string `json:"requestId"` GroupId string `json:"groupid"` PresentationDefinition presentation.PresentationDefinition `json:"presentationDefinition"` Presentation []interface{} `json:"presentation"` RedirectUri string `json:"redirectUri"` ResponseUri string `json:"responseUri"` ResponseMode string `json:"responseMode"` ResponseType string `json:"responseType"` State string `json:"state"` LastUpdateTimeStamp time.Time `json:"lastUpdateTimeStamp"` Nonce string `json:"nonce"` ClientId string `json:"clientId"` }
type Proof ¶
type Proof struct { Payload []presentation.FilterResult SignNamespace string SignKey string SignGroup string HolderDid string }
type ServiceEndpoint ¶
type Signer ¶
type Signer struct {
// contains filtered or unexported fields
}
func GetSigner ¶
func GetSigner(client common.HttpClient) *Signer
func (*Signer) ListDidDocs ¶
func (s *Signer) ListDidDocs(namespace string, group string) (*ListDidResponse, error)
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func GetStorage ¶
func GetStorage(client common.HttpClient) *Storage
func (*Storage) GetCredentials ¶
func (s *Storage) GetCredentials(auth string, accountId string, constraints *presentation.PresentationDefinition) ([]presentation.FilterResult, error)
func (*Storage) GetPresentations ¶
func (s *Storage) GetPresentations(auth string, accountId string, constraints *presentation.PresentationDefinition) ([]presentation.FilterResult, error)
type TransactionModel ¶
Click to show internal directories.
Click to hide internal directories.