keyGenEdDSA

A function for generating ECDSA keyshares.


Import

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

Usage

keyGenEdDSA({
  userToken,
  partyKey
})

Parameters

params: { userToken: string, partyKey: ECDSAP1PartyKeys }

  • userToken: string

    • The user JWT token.

  • partyKey: ECDSAP1PartyKeys

    • The party key object.


Returns

Promise<EdDSAP1Keyshare>

  • Promise which resolves to the generated keyshare.


Error

DuoSDKError | undefined | unknow

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