deviceVerify
Verify device
Get the hardware signature information cert and signature fields from the device and submit them to the OneKey server to verify the reliability of the device. Reading signature data requires confirmation at the device.
const result = await HardwareSDK.deviceVerify(connectId, params);
Params
dataHex
— optionalstring
A random string of hex string, such as a timestamp passed in hex string.
Example
HardwareSDK.deviceVerify(connectId, {
dataHex: '183533a058f'
});
Result
{
success: true,
payload: {
cert: string
signature: string
}
}
Error
{
success: false,
payload: {
error: string, // error message
code: number // error code
}
}
Last updated
Was this helpful?