Method
verifyDidLogin
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 themassage
indidLogin(params)
)signature
: the signature on that message, started with '0x'publicKey
: the publicKey of User'sAuthenticationKey
, which is contains in the DID info (can be obtained bygetCurrentDid()
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 this SDK Function on our Github.
verifyCredentialDigest
Description
This verifyCredentialDigest
method provided in our SDK can be used to check whether the Digest Disclosure is valid, whether the User is the Credential’s Owner.
Params
credentialDigest
: theRequestCredentialDigestReponse
of login-rpc, can be obtained usedid_requestCredentialDigest
methodchallenge
: a random string, the same with thechallenge
in thedid_requestCredentialDigest
methodowner
: the credential owner
Return
boolean
-- The Verification result of the Digest Disclosure
Usage
Check more details about this SDK Function on our Github.
verifyCredentialContent
Description
This verifyCredentialContent
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.
Params
credentialDigest
: theRequestCredentialContentReponse
of login-rpc, can be obtained usedid_requestCredentialContent
methodchallenge
: a random string, the same with thechallenge
in thedid_requestCredentialDigest
methodowner
: the credential owner
Return
boolean
-- The Verification result of the Selective Disclosure or All Credential Content Disclosure.
Usage
Check more details about this SDK Function on our Github.
Last updated