-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
3,060 additions
and
6,763 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
# Class: VerifiableCredentialsService | ||
|
||
## Table of contents | ||
|
||
### Constructors | ||
|
||
- [constructor](VerifiableCredentialsService.md#constructor) | ||
|
||
### Methods | ||
|
||
- [signVerifiableCredential](VerifiableCredentialsService.md#signverifiablecredential) | ||
- [verifyVerifiableCredential](VerifiableCredentialsService.md#verifyverifiablecredential) | ||
- [create](VerifiableCredentialsService.md#create) | ||
|
||
## Constructors | ||
|
||
### constructor | ||
|
||
• **new VerifiableCredentialsService**(`_signerService`) | ||
|
||
#### Parameters | ||
|
||
| Name | Type | | ||
| :------ | :------ | | ||
| `_signerService` | [`SignerService`](SignerService.md) | | ||
|
||
## Methods | ||
|
||
### signVerifiableCredential | ||
|
||
▸ **signVerifiableCredential**<`T`\>(`credential`, `options?`): `Promise`<[`SignedVerifiableCredential`](../interfaces/SignedVerifiableCredential.md)<`T`\>\> | ||
|
||
#### Type parameters | ||
|
||
| Name | | ||
| :------ | | ||
| `T` | | ||
|
||
#### Parameters | ||
|
||
| Name | Type | | ||
| :------ | :------ | | ||
| `credential` | [`VerifiableCredential`](../interfaces/VerifiableCredential.md)<`T`\> | | ||
| `options?` | [`SignVerifiableCredentialOptions`](../interfaces/SignVerifiableCredentialOptions.md) | | ||
|
||
#### Returns | ||
|
||
`Promise`<[`SignedVerifiableCredential`](../interfaces/SignedVerifiableCredential.md)<`T`\>\> | ||
|
||
___ | ||
|
||
### verifyVerifiableCredential | ||
|
||
▸ **verifyVerifiableCredential**<`T`\>(`vc`, `options?`): `Promise`<`boolean`\> | ||
|
||
#### Type parameters | ||
|
||
| Name | | ||
| :------ | | ||
| `T` | | ||
|
||
#### Parameters | ||
|
||
| Name | Type | | ||
| :------ | :------ | | ||
| `vc` | [`SignedVerifiableCredential`](../interfaces/SignedVerifiableCredential.md)<`T`\> | | ||
| `options?` | [`VerifyVerifiableCredentialOptions`](../interfaces/VerifyVerifiableCredentialOptions.md) | | ||
|
||
#### Returns | ||
|
||
`Promise`<`boolean`\> | ||
|
||
___ | ||
|
||
### create | ||
|
||
▸ `Static` **create**(`signerService`): `Promise`<[`VerifiableCredentialsService`](VerifiableCredentialsService.md)\> | ||
|
||
#### Parameters | ||
|
||
| Name | Type | | ||
| :------ | :------ | | ||
| `signerService` | [`SignerService`](SignerService.md) | | ||
|
||
#### Returns | ||
|
||
`Promise`<[`VerifiableCredentialsService`](VerifiableCredentialsService.md)\> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Interface: Domain | ||
|
||
## Table of contents | ||
|
||
### Properties | ||
|
||
- [chainId](Domain.md#chainid) | ||
- [name](Domain.md#name) | ||
- [verifyingContract](Domain.md#verifyingcontract) | ||
- [version](Domain.md#version) | ||
|
||
## Properties | ||
|
||
### chainId | ||
|
||
• `Optional` **chainId**: `number` | ||
|
||
___ | ||
|
||
### name | ||
|
||
• **name**: `string` | ||
|
||
___ | ||
|
||
### verifyingContract | ||
|
||
• `Optional` **verifyingContract**: `string` | ||
|
||
___ | ||
|
||
### version | ||
|
||
• `Optional` **version**: `number` |
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,27 @@ | ||
# Interface: SignVerifiableCredentialOptions | ||
|
||
## Table of contents | ||
|
||
### Properties | ||
|
||
- [domain](SignVerifiableCredentialOptions.md#domain) | ||
- [proofPurpose](SignVerifiableCredentialOptions.md#proofpurpose) | ||
- [verificationMethod](SignVerifiableCredentialOptions.md#verificationmethod) | ||
|
||
## Properties | ||
|
||
### domain | ||
|
||
• `Optional` **domain**: `Partial`<[`Domain`](Domain.md)\> | ||
|
||
___ | ||
|
||
### proofPurpose | ||
|
||
• `Optional` **proofPurpose**: `string` | ||
|
||
___ | ||
|
||
### verificationMethod | ||
|
||
• `Optional` **verificationMethod**: `string` |
Oops, something went wrong.