User Bind DID
POST
/api/user_binddid/
Request Headers
field | Required | headers Description | example |
---|---|---|---|
web3mq-request-pubkey | Yes | your login keyapir's public key | 59daabd77706ba02a97c523513a2ceaed10e4275bd6 |
didkey | Yes | your did_type + ":" + did_value | eth:0xa1b1233fdfde |
Request Payload
Parameters in Body json | Type | Required | Parameters Description |
---|---|---|---|
userid | string | Yes | userid |
provider_id | string | Yes | provider_id |
did_type | string | Yes | email or other type |
did_value | string | Yes | [email protected] |
timestamp | int | Yes | timestamp milliseconds |
web3mq_signature | string | Yes | use ed25519 base64 encode web3mq_signature see signing detail |
web3mq_signature signing rule
base64 encode
web3mq_signature
web3mq_signature = ed25519 private key signing(userid + did_type + did_value + timestamp)
Body json params
{
"provider_id": "web3mq:email:Google",
"userid": "web3mq_userid",
"did_type": "email",
"did_value": "[email protected]",
"timestamp": 160000000,
"web3mq_signature": "asdfasdfadsf"
}
response
Parameters | Type | Always Return | Parameters Description |
---|---|---|---|
code | int | Yes | result code, 0 means success, other code see msg's contents |
msg | string | Yes | result description |
{
"code": 0,
"msg": "ok"
}