Preparing search index...
The search index is not available
Shogun SDK Documentation v1.0.0 - v1.0.0
Shogun SDK Documentation v1.0.0
DID
Interface DID
interface
DID
{
authenticateWithDID
(
did
:
string
,
challenge
?:
string
,
)
:
Promise
<
AuthResult
>
;
createDID
(
options
?:
any
)
:
Promise
<
string
>
;
deactivateDID
(
did
:
string
)
:
Promise
<
boolean
>
;
getCurrentUserDID
()
:
Promise
<
null
|
string
>
;
registerDIDOnChain
(
did
:
string
,
signer
?:
Signer
,
)
:
Promise
<
{
error
?:
string
;
success
:
boolean
;
txHash
?:
string
}
>
;
resolveDID
(
did
:
string
)
:
Promise
<
any
>
;
updateDIDDocument
(
did
:
string
,
documentUpdates
:
any
)
:
Promise
<
boolean
>
;
}
Index
Methods
authenticate
WithDID
createDID
deactivateDID
get
Current
UserDID
registerDIDOn
Chain
resolveDID
updateDIDDocument
Methods
authenticate
WithDID
authenticateWithDID
(
did
:
string
,
challenge
?:
string
)
:
Promise
<
AuthResult
>
Parameters
did
:
string
Optional
challenge
:
string
Returns
Promise
<
AuthResult
>
createDID
createDID
(
options
?:
any
)
:
Promise
<
string
>
Parameters
Optional
options
:
any
Returns
Promise
<
string
>
deactivateDID
deactivateDID
(
did
:
string
)
:
Promise
<
boolean
>
Parameters
did
:
string
Returns
Promise
<
boolean
>
get
Current
UserDID
getCurrentUserDID
()
:
Promise
<
null
|
string
>
Returns
Promise
<
null
|
string
>
registerDIDOn
Chain
registerDIDOnChain
(
did
:
string
,
signer
?:
Signer
,
)
:
Promise
<
{
error
?:
string
;
success
:
boolean
;
txHash
?:
string
}
>
Parameters
did
:
string
Optional
signer
:
Signer
Returns
Promise
<
{
error
?:
string
;
success
:
boolean
;
txHash
?:
string
}
>
resolveDID
resolveDID
(
did
:
string
)
:
Promise
<
any
>
Parameters
did
:
string
Returns
Promise
<
any
>
updateDIDDocument
updateDIDDocument
(
did
:
string
,
documentUpdates
:
any
)
:
Promise
<
boolean
>
Parameters
did
:
string
documentUpdates
:
any
Returns
Promise
<
boolean
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
Methods
authenticate
WithDID
createDID
deactivateDID
get
Current
UserDID
registerDIDOn
Chain
resolveDID
updateDIDDocument
Shogun SDK Documentation v1.0.0 - v1.0.0
Loading...