-
Notifications
You must be signed in to change notification settings - Fork 207
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(present-proof): add support for aries RFC 510 (#1676)
Signed-off-by: Berend Sliedrecht <sliedrecht@berend.io>
- Loading branch information
1 parent
99b801d
commit 40c9bb6
Showing
28 changed files
with
1,373 additions
and
148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
packages/core/src/modules/dif-presentation-exchange/DifPresentationExchangeError.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { AriesFrameworkError } from '../../error' | ||
|
||
export class DifPresentationExchangeError extends AriesFrameworkError { | ||
public additionalMessages?: Array<string> | ||
|
||
public constructor( | ||
message: string, | ||
{ cause, additionalMessages }: { cause?: Error; additionalMessages?: Array<string> } = {} | ||
) { | ||
super(message, { cause }) | ||
this.additionalMessages = additionalMessages | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
packages/core/src/modules/dif-presentation-exchange/DifPresentationExchangeModule.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import type { DependencyManager, Module } from '../../plugins' | ||
|
||
import { AgentConfig } from '../../agent/AgentConfig' | ||
|
||
import { DifPresentationExchangeService } from './DifPresentationExchangeService' | ||
|
||
/** | ||
* @public | ||
*/ | ||
export class DifPresentationExchangeModule implements Module { | ||
/** | ||
* Registers the dependencies of the presentation-exchange module on the dependency manager. | ||
*/ | ||
public register(dependencyManager: DependencyManager) { | ||
// Warn about experimental module | ||
dependencyManager | ||
.resolve(AgentConfig) | ||
.logger.warn( | ||
"The 'DifPresentationExchangeModule' module is experimental and could have unexpected breaking changes. When using this module, make sure to use strict versions for all @aries-framework packages." | ||
) | ||
|
||
// service | ||
dependencyManager.registerSingleton(DifPresentationExchangeService) | ||
} | ||
} |
Oops, something went wrong.