[**@sodot/sodot-react-native-sdk**](/rn/api-ref) • **Docs**

***

[@sodot/sodot-react-native-sdk](/rn/api-ref) / Ed25519KeygenResult

# Class: Ed25519KeygenResult

An Ed25519 key generation result, generated by the `Ed25519.keygen` function.
It contains a public key for Ed25519 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 Ed25519KeygenResult()

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

#### 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

[`Ed25519KeygenResult`](/rn/api-ref/classes/Ed25519KeygenResult)

A new Ed25519KeygenResult object

## Properties

### pubkey

> **pubkey**: `Uint8Array`

***

### secretShare

> **secretShare**: `string`
