@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
Name | Type |
---|---|
key | StorableKey |
Returns
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
Name | Type |
---|---|
key | StorableKey |
Returns
PublicKey instance
Throws
if the restoration process fails, this method throws an error