KeyRestoration
@hyperledger/identus-sdk v8.0.0
@hyperledger/identus-sdk / overview / Domain / KeyRestoration
Interface: KeyRestoration
Defined in: packages/shared/domain/build/index.d.ts:2272
KeyRestoration protocol defines methods for verifying and restoring cryptographic keys from raw data.
Methods
restorePrivateKey()
restorePrivateKey(
key:StorableKey):PrivateKey
Defined in: packages/shared/domain/build/index.d.ts:2280
Restores a PrivateKey from the given StorableKey
Parameters
| Parameter | Type | Description |
|---|---|---|
key | StorableKey | - |
Returns
PrivateKey instance
Throws
if the restoration process fails
restorePublicKey()
restorePublicKey(
key:StorableKey):PublicKey
Defined in: packages/shared/domain/build/index.d.ts:2288
Restores a PublicKey from the given StorableKey
Parameters
| Parameter | Type | Description |
|---|---|---|
key | StorableKey | - |
Returns
PublicKey instance
Throws
if the restoration process fails, this method throws an error