-
Notifications
You must be signed in to change notification settings - Fork 0
/
qrResponse.go
32 lines (27 loc) · 1 KB
/
qrResponse.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
package identity
type QRRegistrationResponse struct {
Type string `json:"type"`
Data QRRegistrationData `json:"data"`
}
type QRRegistrationData struct {
ProveIdentityParams ProveIdentityParams `json:"proveIdentityParams"`
RegisterProofParams RegisterProofParams `json:"registerProofParams"`
}
type ProveIdentityParams struct {
IssuingAuthority string `json:"issuingAuthority"`
DocumentNullifier string `json:"documentNullifier"`
Commitment string `json:"commitment"`
}
type RegisterProofParams struct {
A []string `json:"a"`
B [][]string `json:"b"`
C []string `json:"c"`
Inputs []string `json:"inputs"`
StatesMerkleData StatesMerkleData `json:"statesMerkleData"`
}
type StatesMerkleData struct {
MerkleProof []string `json:"merkleProof"`
CreatedAtTimestamp string `json:"createdAtTimestamp"`
IssuerState string `json:"issuerState"`
IssuerID string `json:"issuerId"`
}