From 7dd149af4d32b96e3e4237618e548ed6a83d9930 Mon Sep 17 00:00:00 2001 From: CheungVane Date: Mon, 8 Aug 2022 11:01:03 +0800 Subject: [PATCH] add attest api information in huks Signed-off-by: zhangwenzhi --- zh-cn/application-dev/reference/apis/js-apis-huks.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-huks.md b/zh-cn/application-dev/reference/apis/js-apis-huks.md index 1cef27ac96..f623b58ce3 100755 --- a/zh-cn/application-dev/reference/apis/js-apis-huks.md +++ b/zh-cn/application-dev/reference/apis/js-apis-huks.md @@ -842,7 +842,6 @@ attestKey(keyAlias: string, options: HuksOptions) : Promise | ---------------- | ----------------------------------------- | ---- | -------------------------------------------------- | | keyAlias | string | 是 | 密钥别名,存放待获取证书密钥的别名。 | | options | [HuksOptions](#huksoptions) | 是 | 用于获取证书时指定所需参数与数据。 | -| callback | AsyncCallback\<[HuksResult](#huksresult)> | 是 | 返回HUKS_SUCCESS时表示接口使用成功,其他时为错误。 | **示例:** @@ -890,7 +889,7 @@ async function attestKey() { }; generateKey(aliasString); let result = await huks.exportKey(attestKey, options); - printLog(`key attest result : ${JSON.stringify(data)}`); + printLog(`key attest result : ${result.errorCode}`); } ``` -- GitLab