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: stringThe user JWT token.
partyKey: ECDSAP1PartyKeysThe party key object.
keyshare: ECDSAP1KeyshareV2The keyshare to be refreshed.
Returns
Promise<ECDSAP1KeyshareV2>
Promise<ECDSAP1KeyshareV2>Promise which resolves to the refreshed keyshare.
Error
DuoSDKError | undefined | unknow
DuoSDKError | undefined | unknowIf key generation fails, the error object is thrown.
Last updated

