Skip to content

Commit

Permalink
chore: extend verification interface
Browse files Browse the repository at this point in the history
  • Loading branch information
nklomp committed May 5, 2023
1 parent 7df0e64 commit 1b2d26b
Show file tree
Hide file tree
Showing 2 changed files with 300 additions and 32 deletions.
24 changes: 21 additions & 3 deletions packages/ssi-types/src/types/vc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,9 +233,10 @@ export interface IVerifyResult {
*/
verified: boolean

results: [
results?: [
{
credential: ICredential
credential?: ICredential
presentation?: IPresentation
verified: boolean
error?: IError
log: [{ id: string; valid: boolean }]
Expand All @@ -262,13 +263,30 @@ export interface IVerifyResult {
* @beta
*/
export interface IError {
name?: string

errors?: IError[]

/**
* The details of the error being throw or forwarded
* The details of the error being thrown or forwarded
*/
message?: string

/**
* The stack of the error
*/
stack?: string | string[]

details?: IErrorDetails

/**
* The code for the error being throw
*/
errorCode?: string
}

export interface IErrorDetails {
code?: string
url?: string
cause?: IError
}

0 comments on commit 1b2d26b

Please sign in to comment.