KeyRestoration
@hyperledger/identus-sdk v7.0.0
@hyperledger/identus-sdk / overview / Domain / KeyRestoration
Interface: KeyRestoration
Defined in: src/domain/protocols/KeyRestoration.ts:6
KeyRestoration protocol defines methods for verifying and restoring cryptographic keys from raw data.
Methods
restorePrivateKey()
restorePrivateKey(
key:StorableKey):PrivateKey
Defined in: src/domain/protocols/KeyRestoration.ts:14
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: src/domain/protocols/KeyRestoration.ts:23
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