vault backup: 2026-11-07 16:33:44
This commit is contained in:
+15
@@ -0,0 +1,15 @@
|
||||
### 生成主密钥
|
||||
点击生成主密钥 getMasterKey
|
||||
每个 ukey 调用 uKeySignAndKeyComponent,将返回值中的 ret.result.component 存储到 this.hashObj中,包含 this.hashObj.component1、this.hashObj.component2、this.hashObj.component3
|
||||
将 this.hashObj 写入到文件 mainkey.txt
|
||||
|
||||
|
||||
|
||||
### 恢复主密钥
|
||||
read 文件内容读取到 hash 变量中,格式是 json
|
||||
this.hash.component1, this.hash.component2, this.hash.component3 就是三个分量
|
||||
|
||||
ukey 内存储了 hash
|
||||
this.readObj111.hash,this.readObj222.hash,this.readObj333.hash
|
||||
|
||||
合并起来调用恢复主密钥接口
|
||||
Reference in New Issue
Block a user