0.9.1-unstable.109 • Published 2 years ago
@sphereon/ssi-sdk-presentation-exchange v0.9.1-unstable.109
Warning: This package still is in very early development. Breaking changes without notice will happen at this point!
Requirements
For this plugin a DID resolver is also required. A DID resolver can be added to the agent as plugin as seen in the example below.
Available functions
Usage
Adding the plugin to an agent:
import { PresentationExchange } from '@sphereon/ssi-sdk-presentation-exchange'
import { Resolver } from 'did-resolver'
import { getDidKeyResolver } from '@veramo/did-provider-key'
import { DIDResolverPlugin } from '@veramo/did-resolver'
import { getUniResolver } from '@sphereon/did-uni-client'
const agent = createAgent<IDidAuthSiopOpAuthenticator & IResolver>({
plugins: [
new PresentationExchange(),
new DIDResolverPlugin({
resolver: new Resolver({
...getDidKeyResolver(),
...getUniResolver('web'),
...getUniResolver('jwk'),
}),
}),
],
})Installation
yarn add @sphereon/ssi-sdk-presentation-exchangeBuild
yarn build0.10.1-unstable.49
3 years ago
0.10.2-unstable.72
2 years ago
0.10.1-unstable.73
2 years ago
0.10.1-unstable.50
3 years ago
0.10.1-unstable.52
3 years ago
0.9.1-unstable.136
3 years ago
0.9.1-unstable.130
3 years ago
0.9.1-unstable.117
3 years ago
0.9.1-unstable.116
3 years ago
0.9.1-unstable.114
3 years ago
0.9.1-unstable.113
3 years ago
0.9.1-unstable.112
3 years ago
0.9.1-unstable.109
3 years ago