Module: identity_wasm
Table of contents
Enumerations
- FailFast
- SubjectHolderRelationship
- MethodRelationship
- StateMetadataEncoding
- StatusCheck
- PresentationProofAlgorithm
- CredentialStatus
- StatusPurpose
- PayloadType
- SerializationType
- ProofAlgorithm
Classes
- CoreDID
- CoreDocument
- Credential
- CustomMethodData
- DIDJwk
- DIDUrl
- DecodedJptCredential
- DecodedJptPresentation
- DecodedJws
- DecodedJwtCredential
- DecodedJwtPresentation
- Disclosure
- DomainLinkageConfiguration
- Duration
- EcDSAJwsVerifier
- EdDSAJwsVerifier
- IotaDID
- IotaDocument
- IotaDocumentMetadata
- IotaIdentityClientExt
- IssuerProtectedHeader
- Jpt
- JptCredentialValidationOptions
- JptCredentialValidator
- JptCredentialValidatorUtils
- JptPresentationValidationOptions
- JptPresentationValidator
- JptPresentationValidatorUtils
- Jwk
- JwkGenOutput
- JwpCredentialOptions
- JwpIssued
- JwpPresentationOptions
- JwpVerificationOptions
- Jws
- JwsHeader
- JwsSignatureOptions
- JwsVerificationOptions
- Jwt
- JwtCredentialValidationOptions
- JwtCredentialValidator
- JwtDomainLinkageValidator
- JwtPresentationOptions
- JwtPresentationValidationOptions
- JwtPresentationValidator
- KeyBindingJWTValidationOptions
- KeyBindingJwtClaims
- LinkedDomainService
- LinkedVerifiablePresentationService
- MethodData
- MethodDigest
- MethodScope
- MethodType
- PayloadEntry
- Payloads
- Presentation
- PresentationProtectedHeader
- Proof
- ProofUpdateCtx
- Resolver
- RevocationBitmap
- RevocationTimeframeStatus
- SdJwt
- SdJwtCredentialValidator
- SdObjectDecoder
- SdObjectEncoder
- SelectiveDisclosurePresentation
- Service
- StatusList2021
- StatusList2021Credential
- StatusList2021CredentialBuilder
- StatusList2021Entry
- Storage
- Timestamp
- UnknownCredential
- VerificationMethod
Interfaces
- IJptCredentialValidationOptions
- IJwpVerificationOptions
- IJptPresentationValidationOptions
- IPresentation
- JwkStorage
- KeyIdStorage
- IDomainLinkageCredential
- IJwsVerificationOptions
- IJwkEc
- IJwkRsa
- IJwkOkp
- IJwkOct
- IJwk
- JwkParamsEc
- JwkParamsOkp
- JwkParamsRsa
- JwkParamsRsaPrime
- JwkParamsOct
- JptClaims
- IJwtPresentationOptions
- IKeyBindingJWTValidationOptions
- IJwtCredentialValidationOptions
- IJwtPresentationValidationOptions
- ILinkedDomainService
- ILinkedVerifiablePresentationService
- IService
- IJwsSignatureOptions
- Evidence
- Issuer
- Policy
- RefreshService
- Schema
- Status
- Subject
- ICredential
- IIotaIdentityClient
- IJwsVerifier
Type Aliases
Functions
Type Aliases
ResolverConfig
Ƭ ResolverConfig: Object
Configurations for the Resolver.
Type declaration
Name | Type | Description |
---|---|---|
client? | IIotaIdentityClient | Client for resolving DIDs of the iota method. |
handlers? | Map \<string , (did : string ) => Promise \<CoreDocument | IToCoreDocument >> | Handlers for resolving DIDs from arbitrary DID methods. The keys to the map are expected to match the method name and the values are asynchronous functions returning DID documents. Note that if a client is given the key "iota" may NOT be present in this map. |
Functions
verifyEd25519
▸ verifyEd25519(alg
, signingInput
, decodedSignature
, publicKey
): void
Verify a JWS signature secured with the EdDSA
algorithm and curve Ed25519
.
This function is useful when one is composing a IJwsVerifier
that delegates
EdDSA
verification with curve Ed25519
to this function.
Warning
This function does not check whether alg = EdDSA
in the protected header. Callers are expected to assert this
prior to calling the function.
Parameters
Name | Type |
---|---|
alg | JwsAlgorithm |
signingInput | Uint8Array |
decodedSignature | Uint8Array |
publicKey | Jwk |
Returns
void
encodeB64
▸ encodeB64(data
): string
Encode the given bytes in url-safe base64.
Parameters
Name | Type |
---|---|
data | Uint8Array |
Returns
string
decodeB64
▸ decodeB64(data
): Uint8Array
Decode the given url-safe base64-encoded slice into its raw bytes.
Parameters
Name | Type |
---|---|
data | Uint8Array |
Returns
Uint8Array
start
▸ start(): void
Initializes the console error panic hook for better error messages
Returns
void