-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
13 changed files
with
726 additions
and
2,051 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
import { | ||
CredentialStatusType, | ||
MerklizedRootPosition, | ||
RefreshService, | ||
SubjectPosition | ||
} from '../verifiable'; | ||
|
||
/** | ||
* Represents the publish mode for identity wallet. | ||
* It can be one of the following values: 'sync', 'async', or 'callback'. | ||
* 'sync' - publish the status synchronously | ||
* 'async' - publish the status asynchronously via message bus | ||
* 'callback' - publish the status with a txCallback | ||
*/ | ||
export type PublishMode = 'sync' | 'async' | 'callback'; | ||
|
||
/** | ||
* Request to core library to create Core Claim from W3C Verifiable Credential | ||
* | ||
* @public | ||
* @interface CredentialRequest | ||
*/ | ||
export interface CredentialRequest { | ||
/** | ||
* JSON credential schema | ||
*/ | ||
credentialSchema: string; | ||
/** | ||
* Credential type | ||
*/ | ||
type: string; | ||
/** | ||
* Credential subject, usually contains claims and identifier | ||
*/ | ||
credentialSubject: { [key: string]: string | object | number | boolean }; | ||
/** | ||
* expiration time | ||
*/ | ||
expiration?: number; | ||
/** | ||
* refreshService | ||
*/ | ||
refreshService?: RefreshService; | ||
/** | ||
* claim version | ||
*/ | ||
version?: number; | ||
|
||
/** | ||
* subject position (index / value / none) | ||
*/ | ||
subjectPosition?: SubjectPosition; | ||
/** | ||
* merklizedRootPosition (index / value / none) | ||
*/ | ||
merklizedRootPosition?: MerklizedRootPosition; | ||
|
||
/** | ||
* Revocation options | ||
* | ||
* @type {{ | ||
* id: string; | ||
* nonce?: number; | ||
* type: CredentialStatusType; | ||
* issuerState?: string; | ||
* }} | ||
* @memberof CredentialRequest | ||
*/ | ||
revocationOpts: { | ||
id: string; | ||
nonce?: number; | ||
type: CredentialStatusType; | ||
issuerState?: string; | ||
}; | ||
} |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
export * from './encoding'; | ||
export * from './object'; | ||
export * from './did-helper'; | ||
export * from './message-bus'; | ||
export * from './compare-func'; |
Oops, something went wrong.