@hyperledger/identus-edge-agent-sdk / Exports / Domain / Castor
Interface: Castor
Domain.Castor
Implemented by
Table of contents
Methods
Methods
createPeerDID
▸ createPeerDID(publicKeys
, services
): Promise
<DID
>
Parameters
Name | Type |
---|---|
publicKeys | PublicKey [] |
services | Service [] |
Returns
Promise
<DID
>
Defined in
src/domain/buildingBlocks/Castor.ts:11
createPrismDID
▸ createPrismDID(masterPublicKey
, services?
, authenticationKeys?
): Promise
<DID
>
Parameters
Name | Type |
---|---|
masterPublicKey | PublicKey |
services? | Service [] |
authenticationKeys? | (PublicKey | KeyPair )[] |
Returns
Promise
<DID
>
Defined in
src/domain/buildingBlocks/Castor.ts:6
getEcnumbasis
▸ getEcnumbasis(did
, publicKey
): string
Parameters
Name | Type |
---|---|
did | DID |
publicKey | PublicKey |
Returns
string
Defined in
src/domain/buildingBlocks/Castor.ts:21
parseDID
▸ parseDID(did
): DID
Parameters
Name | Type |
---|---|
did | string |
Returns
Defined in
src/domain/buildingBlocks/Castor.ts:5
resolveDID
▸ resolveDID(did
): Promise
<DIDDocument
>
Parameters
Name | Type |
---|---|
did | string |
Returns
Promise
<DIDDocument
>
Defined in
src/domain/buildingBlocks/Castor.ts:15
verifySignature
▸ verifySignature(did
, challenge
, signature
): Promise
<boolean
>
Parameters
Name | Type |
---|---|
did | DID |
challenge | Uint8Array |
signature | Uint8Array |
Returns
Promise
<boolean
>