Sr25519KeygenResult
@sodot/sodot-web-sdk • Docs
@sodot/sodot-web-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
An Uint8Array that represents the public key generated.
• secretShare: string
A hex string that represents the secret share created during key generation.
Returns
A new Sr25519KeygenResult object
Properties
pubkey
pubkey:
Uint8Array
secretShare
secretShare:
string