keyRefreshECDSA
A function to refresh the ECDSA keyshare.
Import
import { keyRefreshECDSA } from '@silencelaboratories/react-native-duo-sdk';
Usage
keyRefreshECDSA({
userToken,
partyKey,
keyshare
})
Parameters
params: { userToken: string, partyKey: ECDSAP1PartyKeys, keyshare: EdDSAP1Keyshare }
params: { userToken: string, partyKey: ECDSAP1PartyKeys, keyshare: EdDSAP1Keyshare }
userToken: string
The user JWT token.
partyKey: ECDSAP1PartyKeys
The party key object.
keyshare: ECDSAP1KeyshareV2
The keyshare to be refreshed.
Returns
Promise<ECDSAP1KeyshareV2>
Promise<ECDSAP1KeyshareV2>
Promise which resolves to the refreshed keyshare.
Error
DuoSDKError | undefined | unknow
DuoSDKError | undefined | unknow
If key generation fails, the error object is thrown.
Last updated