Skip to main content

Device Verify

Verify Flow

deviceVerify is used to read the cert and signature generated by the device. The application can submit these data to the UKey Wallet server to verify the authenticity of the device. Before reading the signature information, the user needs to confirm it on the device.

const callResult = await ukeySdk.deviceVerify(connectId, requestParams);

Input Fields

Reusable request options

  • dataHex - string; hex-encoded challenge data, for instance a timestamp encoded as hex.

Reference Snippet

ukeySdk.deviceVerify(connectId, {
dataHex: "1a6f92c4d8b",
});

Result

{
success: true,
payload: {
cert: string
signature: string
}
}

Errors

{
success: false,
payload: {
error: string, // Error message text
code: number // Error code value
}
}