forked from hyperledger-archives/aries-framework-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
models.go
46 lines (40 loc) · 1.29 KB
/
models.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
Copyright SecureKey Technologies Inc. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
package vcwallet
import (
"encoding/json"
"time"
)
// QueryParams model
//
// Parameters for querying vc wallet contents.
//
type QueryParams struct {
// Type of the query.
// Allowed values 'QueryByFrame', 'PresentationExchange'
Type string
// Wallet content query.
Query json.RawMessage
}
// ProofOptions model
//
// Options for adding linked data proofs to a verifiable credential or a verifiable presentation.
//
type ProofOptions struct {
// VerificationMethod is the URI of the verificationMethod used for the proof.
VerificationMethod string `json:"verificationMethod,omitempty"`
// ProofPurpose is purpose of the proof.
ProofPurpose string `json:"proofPurpose,omitempty"`
// Controller is a DID to be for signing.
Controller string `json:"controller,omitempty"`
// Created date of the proof. If omitted current system time will be used.
Created *time.Time `json:"created,omitempty"`
// Domain is operational domain of a digital proof.
Domain string `json:"domain,omitempty"`
// Challenge is a random or pseudo-random value option authentication
Challenge string `json:"challenge,omitempty"`
// ProofType is signature type used for signing
ProofType string `json:"proofType,omitempty"`
}