keyRefreshEdDSA
A function to refresh the EdDSA keyshare.
Import
import { keyRefreshEdDSA } from '@silencelaboratories/react-native-duo-sdk';
Usage
keyRefreshEdDSA({
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: EdDSAP1Keyshare
The keyshare to be refreshed.
Returns
Promise<EdDSAP1Keyshare>
Promise<EdDSAP1Keyshare>
Promise which resolves to the refreshed keyshare.
Error
DuoSDKError | undefined | unknow
DuoSDKError | undefined | unknow
If key generation fails, the error object is thrown.