Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ssi-abstraction
Manage
Activity
Members
Labels
Plan
Issues
13
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Eclipse Projects
xfsc
Organization Credential Manager
ssi-abstraction
Commits
8fd0e7a4
Commit
8fd0e7a4
authored
1 year ago
by
Alexey Lunin
Browse files
Options
Downloads
Patches
Plain Diff
Allow proof/decline request
parent
509fb0cf
No related branches found
Branches containing commit
Tags
v1.0.7-rc
v1.0.7-rc1
v1.0.7-rc2
v1.0.7-rc3
Tags containing commit
No related merge requests found
Pipeline
#21105
failed
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.env.example
+1
-2
1 addition, 2 deletions
.env.example
src/didComm/controller/controller.ts
+10
-10
10 additions, 10 deletions
src/didComm/controller/controller.ts
src/didComm/utils/whitelist.ts
+51
-50
51 additions, 50 deletions
src/didComm/utils/whitelist.ts
with
62 additions
and
62 deletions
.env.example
+
1
−
2
View file @
8fd0e7a4
PORT=3009
AFJ_EXT_PORT=3010
DATABASE_URL=
NATS_URL=nats://localhost:4222
ECSURL=http://localhost:9200/
AGENT_HOST=https://gaiax.vereign.com
...
...
@@ -16,4 +15,4 @@ AGENT_WALLET_KEY=ssi-wallet-key
AGENT_WALLET_ID=ssi-wallet-id
AGENT_LEDGER_ID=ID_UNION,BCOVRIN_TEST
AGENT_ID_UNION_KEY=example-example-example-example
\ No newline at end of file
AGENT_ID_UNION_KEY=example-example-example-example
This diff is collapsed.
Click to expand it.
src/didComm/controller/controller.ts
+
10
−
10
View file @
8fd0e7a4
...
...
@@ -24,18 +24,18 @@ export class DidCommController {
* A backup endpoint that dynamically interfaces with the agent, in case the extension
* lags behind the AFJ or malfunctions
*
* expected body
*
body:
{
* subMethod: {
* name:
'
asdas.asdasd
'
,
* subMethodData: [
*
'
argument1
'
,
*
'
argument2
'
* expected body
:
* {
*
"
subMethod
"
: {
*
"
name
"
:
"
asdas.asdasd
"
,
*
"
subMethodData
"
: [
*
"
argument1
"
,
*
"
argument2
"
* ]
* },
* data: [
*
'
argumentN
'
,
*
'
argumentN+1
'
*
"
data
"
: [
*
"
argumentN
"
,
*
"
argumentN+1
"
* ]
* }
* @param params -one of the allowed properties/method to be called on the agent
...
...
This diff is collapsed.
Click to expand it.
src/didComm/utils/whitelist.ts
+
51
−
50
View file @
8fd0e7a4
...
...
@@ -8,7 +8,7 @@ export interface CheckType {
export
interface
GenericParams
{
property
:
// | 'connections'
//
|
'proofs'
// 'proofs'
// | 'basicMessages'
// | 'ledger'
// | 'credentials'
...
...
@@ -37,59 +37,60 @@ export interface GenericParams {
// | 'requestProof'
// | 'createOutOfBandRequest'
// | 'acceptRequest'
// | 'declineRequest'
// | 'acceptPresentation'
// | 'getRequestedCredentialsForProofRequest'
// | 'autoSelectCredentialsForProofRequest'
// | 'sendProblemReport'
// | 'sendMessage'
// | 'findAllByQuery'
// | 'registerPublicDid'
// | 'getPublicDid'
// | 'registerSchema'
// | 'getSchema'
// | 'registerCredentialDefinition'
// | 'getCredentialDefinition'
// | 'proposeCredential'
// | 'acceptProposal'
// | 'negotiateProposal'
// | 'offerCredential'
// | 'createOutOfBandOffer'
// | 'acceptOffer'
// | 'declineOffer'
// | 'negotiateOffer'
// | 'acceptCredential'
// | 'initiateMessagePickup'
// | 'pickupMessages'
// | 'setDefaultMediator'
// | 'notifyKeylistUpdate'
// | 'findDefaultMediatorConnection'
// | 'discoverMediation'
// | 'requestMediation'
// | 'findByConnectionId'
// | 'getMediators'
// | 'findDefaultMediator'
// | 'requestAndAwaitGrant'
// | 'provision'
// | 'queueMessage'
// | 'grantRequestedMediation'
// | 'queryFeatures'
// | 'initialize'
// | 'create'
// | 'open'
// | 'close'
// | 'delete'
// | 'initPublicDid'
// | 'createDid'
// | 'pack'
// | 'unpack'
'
sign
'
|
'
verify
'
;
|
'
declineRequest
'
// | 'acceptPresentation'
// | 'getRequestedCredentialsForProofRequest'
// | 'autoSelectCredentialsForProofRequest'
// | 'sendProblemReport'
// | 'sendMessage'
// | 'findAllByQuery'
// | 'registerPublicDid'
// | 'getPublicDid'
// | 'registerSchema'
// | 'getSchema'
// | 'registerCredentialDefinition'
// | 'getCredentialDefinition'
// | 'proposeCredential'
// | 'acceptProposal'
// | 'negotiateProposal'
// | 'offerCredential'
// | 'createOutOfBandOffer'
// | 'acceptOffer'
// | 'declineOffer'
// | 'negotiateOffer'
// | 'acceptCredential'
// | 'initiateMessagePickup'
// | 'pickupMessages'
// | 'setDefaultMediator'
// | 'notifyKeylistUpdate'
// | 'findDefaultMediatorConnection'
// | 'discoverMediation'
// | 'requestMediation'
// | 'findByConnectionId'
// | 'getMediators'
// | 'findDefaultMediator'
// | 'requestAndAwaitGrant'
// | 'provision'
// | 'queueMessage'
// | 'grantRequestedMediation'
// | 'queryFeatures'
// | 'initialize'
// | 'create'
// | 'open'
// | 'close'
// | 'delete'
// | 'initPublicDid'
// | 'createDid'
// | 'pack'
// | 'unpack'
|
'
sign
'
|
'
verify
'
;
// | 'generateNonce';
}
export
const
propertiesList
=
[
// 'connections',
//
'proofs',
'
proofs
'
,
// 'basicMessages',
// 'ledger',
// 'credentials',
...
...
@@ -120,7 +121,7 @@ export const methodsList = [
// 'requestProof',
// 'createOutOfBandRequest',
// 'acceptRequest',
//
'declineRequest',
'
declineRequest
'
,
// 'acceptPresentation',
// 'getRequestedCredentialsForProofRequest',
// 'autoSelectCredentialsForProofRequest',
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment