keyGenECDSA

A function for generating ECDSA keyshares.

Import

import { keyGenECDSA } from '@silencelaboratories/react-native-duo-sdk';

Usage

keyGenECDSA({
  userToken,
  partyKey
})

Parameters

params: { userToken: string, partyKey: ECDSAP1PartyKeys }

  • userToken: string

    • The user JWT token.

  • partyKey: ECDSAP1PartyKeys

    • The party key object.


Returns

Promise<ECDSAP1KeyshareV2>

  • Promise which resolves to the generated keyshare.


Error

DuoSDKError | undefined | unknow

  • If key generation fails, the error object is thrown.

Last updated