|
|
@ -22,4 +22,12 @@ const appId = '5ddexxxbdf9e4966b387ba58f4b3fdc3'; |
|
|
|
const deviceId = '2eexxx84b9fc4860b9427feb97a4c142'; |
|
|
|
const deviceId = '2eexxx84b9fc4860b9427feb97a4c142'; |
|
|
|
const userId = '3426axxxbaa04e1ea9ee01bd998d06d4'; |
|
|
|
const userId = '3426axxxbaa04e1ea9ee01bd998d06d4'; |
|
|
|
let nonce = 0; |
|
|
|
let nonce = 0; |
|
|
|
|
|
|
|
const keyPairPromise = crypto.subtle.generateKey( |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
name: 'ECDSA', |
|
|
|
|
|
|
|
namedCurve: curve |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
true, |
|
|
|
|
|
|
|
['sign', 'verify'] |
|
|
|
|
|
|
|
); |
|
|
|
toast('加载完') |
|
|
|
toast('加载完') |