-
Notifications
You must be signed in to change notification settings - Fork 0
/
agent.yml
178 lines (171 loc) · 5.87 KB
/
agent.yml
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
version: 1.0
server:
baseUrl: http://localhost:3332
port: 3332
# baseUrl:
# $env: BASE_URL
# port:
# $env: PORT
# apiKey:
# $env: API_KEY
schemaPath: /open-api.json
# homePageTemplate: ./homepage.html
apiName: Agent
apiVersion: 1.0.0
apiBasePath: /agent
apiDocsPath: /api-docs
defaultDID:
create: true
messagingServiceEndpoint: /messaging
ngrok:
connect: true
# authtoken: XZY
# subdomain: alice-did
# region: eu
# exposedMethods:
# - resolveDid
# - dataStoreORMGetIdentities
constants:
secretKey: 29739248cad1bd1a0fc4d9b75cd4d2990de535baf5caadfdf8d8f86664aa830c
databaseFile: ./database.sqlite
dbConnection:
$require: typeorm?t=function#createConnection
$args:
- type: sqlite
database:
$ref: /constants/databaseFile
synchronize: true
logging: false
entities:
$require: '@veramo/data-store?t=object#Entities'
messageHandler:
$require: '@veramo/message-handler#MessageHandler'
$args:
- messageHandlers:
- $require: '@veramo/did-comm#DIDCommMessageHandler'
- $require: '@veramo/did-jwt#JwtMessageHandler'
- $require: '@veramo/credential-w3c#W3cMessageHandler'
- $require: '@veramo/selective-disclosure#SdrMessageHandler'
ethr-did-resolver:
$require: ethr-did-resolver?t=function&p=/ethr#getResolver
$args:
- networks:
- name: mainnet
rpcUrl: https://mainnet.infura.io/v3/5ffc47f65c4042ce847ef66a3fa70d4c
- name: rinkeby
rpcUrl: https://rinkeby.infura.io/v3/5ffc47f65c4042ce847ef66a3fa70d4c
- name: ropsten
rpcUrl: https://ropsten.infura.io/v3/5ffc47f65c4042ce847ef66a3fa70d4c
- name: kovan
rpcUrl: https://kovan.infura.io/v3/5ffc47f65c4042ce847ef66a3fa70d4c
- name: goerli
rpcUrl: https://goerli.infura.io/v3/5ffc47f65c4042ce847ef66a3fa70d4c
- name: private
rpcUrl: http://localhost:8545/
registry: '0x05cc574b19a3c11308f761b3d7263bd8608bc532'
web-did-resolver:
$require: web-did-resolver?t=function&p=/web#getResolver
universal-resolver:
$require: '@veramo/did-resolver#UniversalResolver'
$args:
- url: https://dev.uniresolver.io/1.0/identifiers/
resolver:
$require: did-resolver#Resolver
$args:
- ethr:
$ref: /ethr-did-resolver
web:
$ref: /web-did-resolver
io:
$ref: /universal-resolver
elem:
$ref: /universal-resolver
key:
$ref: /universal-resolver
ion:
$ref: /universal-resolver
sov:
$ref: /universal-resolver
agent:
$require: '@veramo/core#Agent'
$args:
- schemaValidation: false
plugins:
- $require: '@veramo/key-manager#KeyManager'
$args:
- store:
$require: '@veramo/data-store#KeyStore'
$args:
- $ref: /dbConnection
- $require: '@veramo/kms-local#SecretBox'
$args:
- $ref: /constants/secretKey
kms:
local:
$require: '@veramo/kms-local#KeyManagementSystem'
- $require: '@veramo/did-manager#DIDManager'
$args:
- store:
$require: '@veramo/data-store#DIDStore'
$args:
- $ref: /dbConnection
defaultProvider: did:ethr:rinkeby
providers:
did:ethr:
$require: '@veramo/did-provider-ethr#EthrDIDProvider'
$args:
- defaultKms: local
network: mainnet
rpcUrl: https://mainnet.infura.io/v3/5ffc47f65c4042ce847ef66a3fa70d4c
gas: 1000001
ttl: 31104001
did:ethr:rinkeby:
$require: '@veramo/did-provider-ethr#EthrDIDProvider'
$args:
- defaultKms: local
network: rinkeby
rpcUrl: https://rinkeby.infura.io/v3/5ffc47f65c4042ce847ef66a3fa70d4c
gas: 1000001
ttl: 31104001
did:ethr:ropsten:
$require: '@veramo/did-provider-ethr#EthrDIDProvider'
$args:
- defaultKms: local
network: ropsten
rpcUrl: https://ropsten.infura.io/v3/5ffc47f65c4042ce847ef66a3fa70d4c
gas: 1000001
ttl: 31104001
did:ethr:kovan:
$require: '@veramo/did-provider-ethr#EthrDIDProvider'
$args:
- defaultKms: local
network: kovan
rpcUrl: https://kovan.infura.io/v3/5ffc47f65c4042ce847ef66a3fa70d4c
gas: 1000001
ttl: 31104001
did:ethr:goerli:
$require: '@veramo/did-provider-ethr#EthrDIDProvider'
$args:
- defaultKms: local
network: goerli
rpcUrl: https://goerli.infura.io/v3/5ffc47f65c4042ce847ef66a3fa70d4c
gas: 1000001
ttl: 31104001
did:web:
$require: '@veramo/did-provider-web#WebDIDProvider'
$args:
- defaultKms: local
- $require: '@veramo/did-resolver#DIDResolverPlugin'
$args:
- resolver:
$ref: /resolver
- $require: '@veramo/data-store#DataStore'
$args:
- $ref: /dbConnection
- $require: '@veramo/data-store#DataStoreORM'
$args:
- $ref: /dbConnection
- $ref: /messageHandler
- $require: '@veramo/did-comm#DIDComm'
- $require: '@veramo/credential-w3c#CredentialIssuer'
- $require: '@veramo/selective-disclosure#SelectiveDisclosure'