UNPKG

@jolocom/protocol-ts

Version:

Jolocom SSI protocol typescript definitions - jolocom.io

16 lines (11 loc) 476 B
import { ILinkedDataSignatureAttrs } from './linkedDataSignature' import { ContextEntry } from 'cred-types-jolocom-core' type JsonLdPrimitive = string | number | boolean | JsonLdObject | JsonLdObject[] export type JsonLdContext = ContextEntry | ContextEntry[] export interface JsonLdObject { '@context'?: JsonLdContext [key: string]: JsonLdPrimitive | JsonLdPrimitive[] } export interface SignedJsonLdObject extends JsonLdObject { proof: ILinkedDataSignatureAttrs }