Skip to main content
Version: 1.5

Sr25519KeygenResult

@sodot/sodot-node-sdkDocs


@sodot/sodot-node-sdk / Sr25519KeygenResult

Class: Sr25519KeygenResult

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

new Sr25519KeygenResult(pubkey, secretShare): Sr25519KeygenResult

Parameters

pubkey: Uint8Array<ArrayBufferLike>

An Uint8Array that represents the public key generated.

secretShare: string

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

Returns

Sr25519KeygenResult

A new Sr25519KeygenResult object

Properties

pubkey

pubkey: Uint8Array<ArrayBufferLike>


secretShare

secretShare: string