Skip to main content

@atala/prism-wallet-sdk / Exports / Domain / KeyRestoration

Interface: KeyRestoration

Domain.KeyRestoration

KeyRestoration protocol defines methods for verifying and restoring cryptographic keys from raw data.

Implemented by

Table of contents

Methods

Methods

restorePrivateKey

restorePrivateKey(key): PrivateKey

Restores a PrivateKey from the given StorableKey

Parameters

NameType
keyStorableKey

Returns

PrivateKey

PrivateKey instance

Throws

if the restoration process fails

Defined in

src/domain/protocols/KeyRestoration.ts:14


restorePublicKey

restorePublicKey(key): PublicKey

Restores a PublicKey from the given StorableKey

Parameters

NameType
keyStorableKey

Returns

PublicKey

PublicKey instance

Throws

if the restoration process fails, this method throws an error

Defined in

src/domain/protocols/KeyRestoration.ts:23