Skip to content

Commit

Permalink
fix(types): fix data type for "authentication" array in DIDDocument (
Browse files Browse the repository at this point in the history
…#60)

"authentication" relationship in did document is either DID URL or public key, no special Authenticator needed
  • Loading branch information
ukstv authored and mirceanis committed Dec 9, 2020
1 parent 3ba79f8 commit d017cb3
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ export interface DIDDocument {
'@context': 'https://w3id.org/did/v1'
id: string
publicKey: PublicKey[]
authentication?: Authentication[]
authentication?: (string | PublicKey)[]
uportProfile?: any
service?: ServiceEndpoint[]
created?: string
updated?: string
proof?: LinkedDataProof
keyAgreement?: (string|PublicKey)[]
keyAgreement?: (string | PublicKey)[]
}

export interface ServiceEndpoint {
Expand All @@ -43,11 +43,6 @@ export interface PublicKey {
publicKeyPem?: string
}

export interface Authentication {
type: string
publicKey: string
}

export interface LinkedDataProof {
type: string
created: string
Expand Down

0 comments on commit d017cb3

Please sign in to comment.