Method
Last updated
Last updated
Description
This SDK function aims for helping developers to authenticate User. This should be invoked after using the didLogin(params)
function in the Provider, verifyDidLogin(params)
function helps verify whether the User is actually the Owner of the DID.
Params
message
: the message which the User signed on (this should be the same with the massage
in didLogin(params)
)
signature
: the signature on that message, started with '0x'
publicKey
: the publicKey of User's AuthenticationKey
, which is contains in the DID info (can be obtained by getCurrentDid()
function in the Provider.
Return Boolean
-- Whether the signature is actually signed by the User (in other word -- Whether developers should allow the User to login)
Usage
Check more details about .
Description
Params
credentialDigest
: the RequestCredentialDigestReponse
of login-rpc, can be obtained use did_requestCredentialDigest
method
challenge
: a random string, the same with the challenge
in the did_requestCredentialDigest
method
owner
: the credential owner
Return
boolean
-- The Verification result of the Digest Disclosure
Usage
Description
Params
credentialDigest
: the RequestCredentialContentReponse
of login-rpc, can be obtained use did_requestCredentialContent
method
challenge
: a random string, the same with the challenge
in the did_requestCredentialDigest
method
owner
: the credential owner
Return
boolean
-- The Verification result of the Selective Disclosure or All Credential Content Disclosure.
Usage
This method provided in our SDK can be used to check whether the Digest Disclosure is valid, whether the User is the Credential’s Owner.
Check more details about .
This method provided in our SDK can be used to check whether the Selective Disclosure or All Credential Content Disclosure is valid, whether the User is the Credential's Owner.
Check more details about .