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

***

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

# Class: ExportableEd25519KeygenResult

An ExportableEd25519 key generation result, generated by the `ExportableEd25519.sample_key` and `ExportableEd25519.receive_key` functions.
It contains a public key for ExportableEd25519.
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 ExportableEd25519KeygenResult()

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

#### Parameters

• **pubkey**: `Uint8Array`

An Uint8Array that represents the public key generated.

• **secretShare**: `string`

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

#### Returns

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

A new ExportableEd25519KeygenResult object

## Properties

### pubkey

> **pubkey**: `Uint8Array`

***

### secretShare

> **secretShare**: `string`
