HiveAuth
Search
⌃K

Challenge request

When an APP request the PKSA to sign a challenge, it will receive the following message:

challenge_req

{
cmd: "challenge_req",
account: string,
token: string,
data: string,
uuid: string,
expire: number
}
Properties
  • account: the Hive account name
  • token: the authentication token
  • data: the Base64 representation of an encrypted challenge_data object
  • uuid {string} the transaction request identifier
  • expire {Number} UNIX time when the request will expire
The PKSA must decrypt the challenge_data object using the encryption key previously shared with the APP (auth_key)
The structure of the challenge_data is:

challenge_data

{
key_type: string,
challenge: string
}
Properties
  • key_type: the key type required to sign the transactions. It can be one of posting|active|memo.
  • challenge: a string to be signed