@hyperledger/identus-sdk / Exports / Domain
Namespace: Domain
Table of contents
References
Namespaces
- AgentError
- ApolloError
- Backup
- CastorError
- CommonError
- ExportableKey
- ImportableKey
- JWK
- JWT
- MercuryError
- Message
- PEM
- Pluto
- PlutoError
- PolluxError
- Protocols
- StorableKey
Enumerations
- CredentialType
- Curve
- JWT_ALG
- KeyProperties
- KeyTypes
- KeyUsage
- MessageDirection
- Usage
- W3CVerifiableCredentialContext
- W3CVerifiableCredentialType
Classes
- AlsoKnownAs
- ApiError
- ApiResponse
- AssertionMethod
- AttachmentDescriptor
- Authentication
- CapabilityDelegation
- CapabilityInvocation
- Controller
- Credential
- CredentialMetadata
- DID
- DIDDocument
- DIDPair
- DIDResolver
- DIDUrl
- DerivableKey
- Key
- KeyAgreement
- KeyPair
- LinkSecret
- Message
- PrismDID
- PrivateKey
- PublicKey
- Service
- ServiceEndpoint
- Services
- SignableKey
- VerifiableKey
- VerificationMethod
- VerificationMethods
Interfaces
- Api
- Apollo
- AttachmentBase64
- AttachmentHeader
- AttachmentJws
- AttachmentJwsData
- AttachmentLinkData
- Castor
- KeyCurve
- Mediator
- Mercury
- Pluto
- ProvableCredential
- PublicKeyJWK
- Seed
- SeedWords
- Signature
- StorableCredential
- StorableKey
Type Aliases
- AttachmentData
- AttachmentJsonData
- DIDDocumentCoreProperty
- ExportableKey
- HttpMethod
- JWK
- JsonString
- MnemonicWordList
- PresentationClaims
- W3CVerifiableCredential
- W3CVerifiablePresentation
- W3CVerifiablePresentationProof
Functions
References
KeyRestoration
Re-exports KeyRestoration
Startable
Re-exports Startable
Type Aliases
AttachmentData
Ƭ AttachmentData: AttachmentJsonData
| AttachmentLinkData
| AttachmentBase64
| AttachmentJwsData
| AttachmentJws
| AttachmentHeader
Defined in
src/domain/models/MessageAttachment.ts:32
AttachmentJsonData
Ƭ AttachmentJsonData: Object
Type declaration
Name | Type |
---|---|
json | any |
Defined in
src/domain/models/MessageAttachment.ts:28
DIDDocumentCoreProperty
Ƭ DIDDocumentCoreProperty: Service
| AlsoKnownAs
| Controller
| VerificationMethods
| Services
| Authentication
| AssertionMethod
| KeyAgreement
| CapabilityInvocation
| CapabilityDelegation
Defined in
src/domain/models/DIDDocument.ts:99
ExportableKey
Ƭ ExportableKey: All
ExportableKey defines the formats a crypographic key can be converted to Default is all
Defined in
src/domain/models/keyManagement/exportable/ExportableKey.ts:12
src/domain/models/keyManagement/exportable/ExportableKey.ts:24
HttpMethod
Ƭ HttpMethod: "DELETE"
| "GET"
| "POST"
| "PUT"
Defined in
JWK
JWK
Defined in
src/domain/models/keyManagement/exportable/JWK.ts:11
src/domain/models/keyManagement/exportable/JWK.ts:17
JsonString
Ƭ JsonString: string
Defined in
MnemonicWordList
Ƭ MnemonicWordList: [string
, string
, string
, string
, string
, string
, string
, string
, string
, string
, string
, string
] | [string
, string
, string
, string
, string
, string
, string
, string
, string
, string
, string
, string
, string
, string
, string
, string
, string
, string
, string
, string
, string
, string
, string
, string
]
Defined in
src/domain/models/WordList.ts:1
PresentationClaims
Ƭ PresentationClaims<T
>: T
extends JWT
? OEA.JWTPresentationClaims
: T
extends SDJWT
? OEA.SDJWTPresentationClaims
: T
extends AnonCreds
? ACClaims
: never
Type parameters
Name | Type |
---|---|
T | extends CredentialType = JWT |
Defined in
src/domain/models/VerifiableCredential.ts:5
W3CVerifiableCredential
Ƭ W3CVerifiableCredential: Object
Type declaration
Name | Type |
---|---|
@context | [credential ] |
credentialSchema? | { id : string ; type : string } |
credentialSchema.id | string |
credentialSchema.type | string |
credentialStatus? | unknown |
credentialSubject | Record <string , any > |
evidence? | { id : string ; type : string } |
evidence.id | string |
evidence.type | string |
expirationDate? | string |
issuanceDate | string |
issued? | string |
issuer | string |
refreshService? | { id : string ; type : string } |
refreshService.id | string |
refreshService.type | string |
termsOfUse? | { id : string ; type : string } |
termsOfUse.id | string |
termsOfUse.type | string |
type | [credential ] |
validFrom? | { id : string ; type : string } |
validFrom.id | string |
validFrom.type | string |
validUntil? | { id : string ; type : string } |
validUntil.id | string |
validUntil.type | string |
Defined in
src/domain/models/VerifiableCredential.ts:38
W3CVerifiablePresentation
Ƭ W3CVerifiablePresentation: Object
Type declaration
Name | Type |
---|---|
@context | [credential ] |
proof? | W3CVerifiablePresentationProof |
type | [presentation ] |
verifiableCredential | string [] |
Defined in
src/domain/models/VerifiableCredential.ts:74
W3CVerifiablePresentationProof
Ƭ W3CVerifiablePresentationProof: Object
Type declaration
Name | Type |
---|---|
challenge | string |
domain | string |
Defined in
src/domain/models/VerifiableCredential.ts:85
Functions
curveToAlg
▸ curveToAlg(curve
): JWT_ALG
Parameters
Name | Type |
---|---|
curve | string |
Returns
Defined in
src/domain/models/keyManagement/Key.ts:190
getKeyCurveByNameAndIndex
▸ getKeyCurveByNameAndIndex(name
, index?
): KeyCurve
Parameters
Name | Type |
---|---|
name | string |
index? | number |
Returns
Defined in
src/domain/models/keyManagement/Key.ts:199
getProtosUsage
▸ getProtosUsage(usage
): KeyUsage
Parameters
Name | Type |
---|---|
usage | Usage |
Returns
Defined in
src/domain/models/keyManagement/Key.ts:24
getUsage
▸ getUsage(protosUsage
): Usage
Parameters
Name | Type |
---|---|
protosUsage | KeyUsage |
Returns
Defined in
src/domain/models/keyManagement/Key.ts:144
getUsageFromId
▸ getUsageFromId(id
): Object
Return usage from a verification method id
Parameters
Name | Type |
---|---|
id | string |
Returns
Object
Name | Type |
---|---|
index | number |
usage | Usage |
Defined in
src/domain/models/keyManagement/Key.ts:57
getUsageId
▸ getUsageId(keyUsage
, index?
): string
create an identifier for keys within a DID Document should be unique within the Document
Parameters
Name | Type | Default value | Description |
---|---|---|---|
keyUsage | Usage | undefined | maps to a prefix word |
index | number | 0 | occurrence of this keyUsage |
Returns
string