Namespace: did
Namespaces
Interfaces
- AddControllersParam
- AddKeysParam
- AddServiceEndpointParam
- AuthorizationFactors
- BaseResolver
- CipherInterface
- CreateParam
- DeactivateParam
- DidDocument
- DidEndpoint
- DidMethod
- DidModuleConfig
- DocumentLoaderResult
- Ed25519KeyPair
- Ed25519Signature2020
- JWEDocument
- KeysCommand
- NonceStoreData
- RemoveControllersParam
- RemoveKeysParam
- RemoveServiceEndpointParam
- Service
- TransactionPayload
- TransactionPayloadWithoutSignature
- VerificationMethod
Type Aliases
AddControllersEventData
Ƭ AddControllersEventData: AddControllersParam
Defined in
packages/klayr-decentralized-identifier/dist/types/events/add_controllers_event.d.ts:2
AddKeysEventData
Ƭ AddKeysEventData: AddKeysParam
Defined in
packages/klayr-decentralized-identifier/dist/types/events/add_keys_event.d.ts:2
AddServiceEndpointEventData
Ƭ AddServiceEndpointEventData: AddServiceEndpointParam
Defined in
packages/klayr-decentralized-identifier/dist/types/events/add_service_endpoint_event.d.ts:2
AuthorizationResult
Ƭ AuthorizationResult: Object
Type declaration
Name | Type |
---|---|
did | string |
method | VerificationMethod [] |
relationship | VerificationRelationship [] |
type | "subject" | "controller" |
Defined in
packages/klayr-decentralized-identifier/dist/types/cryptography.d.ts:3
BaseLoader
Ƭ BaseLoader: (url
: string
) => Promise
<Record
<string
, any
>>
Type declaration
▸ (url
): Promise
<Record
<string
, any
>>
Parameters
Name | Type |
---|---|
url | string |
Returns
Promise
<Record
<string
, any
>>
Defined in
packages/klayr-decentralized-identifier/dist/types/resolver.d.ts:17
CommandPayload
Ƭ CommandPayload: CreatePayload
| PayloadWithSignature
Defined in
packages/klayr-decentralized-identifier/dist/types/client.d.ts:27
CreateEventData
Ƭ CreateEventData: CreateParam
Defined in
packages/klayr-decentralized-identifier/dist/types/events/create_event.d.ts:2
CreateResolverParam
Ƭ CreateResolverParam: Object
Type declaration
Name | Type |
---|---|
context? | MethodContext |
ipc? | string |
loader? | BaseLoader | DocumentLoader |
method? | DidMethod |
resolver? | BaseResolver |
ws? | string |
Defined in
packages/klayr-decentralized-identifier/dist/types/resolver.d.ts:18
DIDCommands
Ƭ DIDCommands: "addControllers"
| "addKeys"
| "addServiceEndpoint"
| "create"
| "deactivate"
| "removeControllers"
| "removeKeys"
| "removeServiceEndpoint"
Defined in
packages/klayr-decentralized-identifier/dist/types/client.d.ts:25
DIDTransactionParam
Ƭ DIDTransactionParam: AddControllersParam
| AddKeysParam
| AddServiceEndpointParam
| CreateParam
| DeactivateParam
| RemoveControllersParam
| RemoveKeysParam
| RemoveServiceEndpointParam
Defined in
packages/klayr-decentralized-identifier/dist/types/client.d.ts:23
DeactivateEventData
Ƭ DeactivateEventData: DeactivateParam
Defined in
packages/klayr-decentralized-identifier/dist/types/events/deactivate_event.d.ts:2
DecodedTransactionJSON
Ƭ DecodedTransactionJSON<T
>: Omit
<TransactionJSON
, "params"
> & { params
: T
}
Type parameters
Name | Type |
---|---|
T | Record <string , unknown > |
Defined in
packages/klayr-decentralized-identifier/dist/types/client.d.ts:38
DocumentLoader
Ƭ DocumentLoader: (url
: string
) => Promise
<DocumentLoaderResult
>
Type declaration
▸ (url
): Promise
<DocumentLoaderResult
>
Parameters
Name | Type |
---|---|
url | string |
Returns
Promise
<DocumentLoaderResult
>
Defined in
packages/klayr-decentralized-identifier/dist/types/resolver.d.ts:16
DocumentStoreData
Ƭ DocumentStoreData: DidDocument
Defined in
packages/klayr-decentralized-identifier/dist/types/stores/document.d.ts:2
KeyAgreement
Ƭ KeyAgreement: VerificationMethod
& { privateKeyMultibase?
: string
}
Defined in
packages/klayr-decentralized-identifier/dist/types/cryptography.d.ts:16
PayloadWithSignature
Ƭ PayloadWithSignature: AddControllersSignaturePayload
| AddKeysSignaturePayload
| AddServiceEndpointSignaturePayload
| DeactivateSignaturePayload
| RemoveControllersSignaturePayload
| RemoveKeysSignaturePayload
| RemoveServiceEndpointSignaturePayload
Defined in
packages/klayr-decentralized-identifier/dist/types/client.d.ts:26
RemoveControllersEventData
Ƭ RemoveControllersEventData: RemoveControllersParam
Defined in
packages/klayr-decentralized-identifier/dist/types/events/remove_controllers_event.d.ts:2
RemoveKeysEventData
Ƭ RemoveKeysEventData: RemoveKeysParam
Defined in
packages/klayr-decentralized-identifier/dist/types/events/remove_keys_event.d.ts:2
RemoveServiceEndpointEventData
Ƭ RemoveServiceEndpointEventData: RemoveServiceEndpointParam
Defined in
packages/klayr-decentralized-identifier/dist/types/events/remove_service_endpoint_event.d.ts:2
VerificationRelationship
Ƭ VerificationRelationship: "authentication"
| "assertionMethod"
| "capabilityInvocation"
| "keyAgreement"
Defined in
packages/klayr-decentralized-identifier/dist/types/cryptography.d.ts:9
WriteableSchema
Ƭ WriteableSchema: Writeable
<Schema
>
Defined in
packages/klayr-decentralized-identifier/dist/types/client.d.ts:24
Variables
default
• Const
default: Object
Type declaration
Name | Type |
---|---|
client | typeof client |
cryptography | typeof cryptography |
resolver | typeof resolver |
utils | typeof utils |
getAddressDIDFromPublicKey | (chainspace : string , publicKey : Buffer ) => string |
getDIDDocument | (did : string , options : CreateResolverParam ) => Promise <undefined | DidDocument > |
parseDIDComponent | (did : string ) => { chainspace : any ; did : string ; fragment : any ; method : any ; namespace : string ; path : any ; query : any ; scheme : string ; uniqueId : string ; uri : string } |
Defined in
packages/klayr-decentralized-identifier/dist/index.d.ts:12
Functions
getAddressDIDFromPublicKey
▸ getAddressDIDFromPublicKey(chainspace
, publicKey
): string
Parameters
Name | Type |
---|---|
chainspace | string |
publicKey | Buffer |
Returns
string
Defined in
packages/klayr-decentralized-identifier/dist/did.d.ts:16
getDIDDocument
▸ getDIDDocument(did
, options
): Promise
<DidDocument
| undefined
>
Parameters
Name | Type |
---|---|
did | string |
options | CreateResolverParam |
Returns
Promise
<DidDocument
| undefined
>
Defined in
packages/klayr-decentralized-identifier/dist/did.d.ts:17
parseDIDComponent
▸ parseDIDComponent(did
): Object
Parameters
Name | Type |
---|---|
did | string |
Returns
Object
Name | Type |
---|---|
chainspace | any |
did | string |
fragment | any |
method | any |
namespace | string |
path | any |
query | any |
scheme | string |
uniqueId | string |
uri | string |
Defined in
packages/klayr-decentralized-identifier/dist/did.d.ts:4