[**@sodot/sodot-web-sdk**](/web/api-ref) • **Docs**

***

[@sodot/sodot-web-sdk](/web/api-ref) / EcdsaKeygenResult

# Class: EcdsaKeygenResult

An ECDSA key generation result, generated by the `Ecdsa.keygen` function.
It contains an EcdsaPublicKey that can be used to derive addresses from.
It also contains a hex string of the secret share itself.
This **must be kept secret!** Note this data is **not** stored by the SDK itself.

## Constructors

### new EcdsaKeygenResult()

> **new EcdsaKeygenResult**(`pubkey`, `secretShare`): [`EcdsaKeygenResult`](/web/api-ref/classes/EcdsaKeygenResult)

#### Parameters

• **pubkey**: [`EcdsaPublicKey`](/web/api-ref/classes/EcdsaPublicKey)

An EcdsaPublicKey

• **secretShare**: `string`

A hex string that represents the **secret** share created during key generation.

#### Returns

[`EcdsaKeygenResult`](/web/api-ref/classes/EcdsaKeygenResult)

A new EcdsaKeygenResult object

## Properties

### pubkey

> **pubkey**: [`EcdsaPublicKey`](/web/api-ref/classes/EcdsaPublicKey)

***

### secretShare

> **secretShare**: `string`
