What Is a Wallet Key Share Recovery SDK?

By Safeheron Team
|

A wallet key share recovery software development kit, or wallet key share recovery SDK, is a collection of libraries, protocol interfaces, and integration components that helps wallet applications restore key shares after device loss, application data corruption, personnel changes, or signing-node failure.

It is typically used with multiparty computation or threshold-signature wallets. These wallets distribute signing authority across multiple key shares, and a transaction can only be signed when the required threshold is reached. A recovery SDK helps re-establish signing capability by using encrypted backups, other valid shares, or designated recovery participants when one share is lost or unavailable.

Key share recovery does not necessarily generate a complete private key. A secure distributed recovery process can usually create a replacement share or a new set of shares without the complete private key ever appearing. However, some emergency exit tools combine multiple shares into a complete private key for asset migration. These two capabilities involve very different risks and controls and must be distinguished during vendor evaluation.

What Can a Wallet Key Share Recovery SDK Do?

A complete recovery SDK may support the following capabilities:

  • Identify a missing key share or one that needs to be replaced;
  • Retrieve an encrypted backup from user-controlled storage;
  • Authenticate the user, new device, and recovery request;
  • Coordinate other MPC participants to execute a recovery protocol;
  • Generate a replacement share without exposing the complete private key;
  • Bind the new share to a replacement device or signing node;
  • Verify the public key and wallet address before and after recovery;
  • Refresh the shares held by other participants;
  • Mark, deactivate, or delete obsolete shares;
  • Record the initiation, approval, execution, and completion of recovery;
  • Support offline recovery or emergency asset migration;
  • Send recovery notifications to users and administrators.

However, a recovery SDK is usually only an underlying component rather than a complete wallet recovery system. Enterprises still need to build or integrate identity verification, risk controls, approval workflows, encrypted storage, device management, logging, and customer support processes.

What Is the Difference Between Key Share Recovery, Backup, and Refresh?

These concepts are often used interchangeably, but their security implications are different.

OperationPrimary purposeMay generate new sharesDoes the complete private key appear?Main risk
Encrypted backupStore an encrypted copy of a shareNoUsually noThe backup and decryption key are compromised together
Backup restorationDecrypt an existing share on a new deviceUsually noUsually noThe old share on the missing device may remain valid
Distributed recoveryRecover a missing share using existing participantsUsually yesUsually noRecovery authority bypasses the normal threshold
Key share refreshGenerate an updated set of shares for the same walletYesUsually noObsolete shares may remain usable
Account recoveryRestore access to an application or user accountNot necessarilyNot necessarilyLogin recovery is mistaken for signing recovery
Emergency exitMigrate assets when the normal system is unavailableDepends on the implementationPossiblyComplete private key exposure or an incorrect migration address

The U.S. National Institute of Standards and Technology defines key recovery as the mechanisms and processes used to retrieve or reconstruct keys and related information from backups or archives. Its key management guidance treats backup, recovery, access control, auditing, and contingency planning as parts of the cryptographic key lifecycle.

For an MPC wallet, an enterprise must additionally determine whether the recovery target is the original share, a replacement share, a new set of shares, or the complete private key.

Why Do Keyless Wallets Still Need a Recovery SDK?

A “keyless wallet” generally means that the user does not directly manage a complete private key or traditional seed phrase. It does not mean that the wallet no longer requires a recovery mechanism.

The following events can still make a signing participant unavailable:

  • A user loses or replaces a phone;
  • The wallet application is deleted or its local data is erased;
  • A mobile device is damaged;
  • Browser storage is reset;
  • An employee leaves or changes roles;
  • An enterprise server or MPC node fails;
  • A cloud account or data center becomes unavailable;
  • An encrypted backup cannot be read;
  • An application version is incompatible with the key share format;
  • A key share may have been compromised;
  • The wallet provider stops operating;
  • The enterprise needs to migrate to new wallet infrastructure.

Without a designed and tested recovery process, distributing signing authority may reduce the risk of private key theft while increasing the risk that assets become inaccessible after a device or node is lost.

For the broader authentication, signing, and recovery architecture, see Keyless Wallet Infrastructure.

What Are the Common Key Share Recovery Models?

Two-of-Two Signing with an Encrypted Backup

In a two-of-two structure, the application device and enterprise server each hold one share. To account for device loss, the application can encrypt the device share and save it to user-controlled cloud storage or another backup location.

After the user changes devices, the system authenticates the user, and the new device downloads and decrypts the backup to restore the original device share.

This method is closer to encrypted backup restoration and may not involve a new distributed recovery protocol. Its primary risks are that the original share may still exist on the old device and that an attacker may obtain both the encrypted backup and the material required to decrypt it.

Two-of-Three Key Share Recovery

In a two-of-three structure, two of the three shares can satisfy the signing threshold. Two shares may be used for routine signing, while the third acts as a recovery participant.

If one routine share is lost, the other two valid participants can execute a distributed recovery protocol to generate a replacement share or a new set of shares. The complete private key usually does not need to be reconstructed.

This structure avoids relying solely on a duplicate of the routine share as a backup. However, the recovery share must be protected, and a single server or identity account must not be able to authorize recovery independently.

Multi-Server Node Recovery

An institutional wallet can distribute shares across independent servers, cloud accounts, regions, or administrative teams. If one node is permanently damaged, the other participants can jointly authorize the creation of a replacement node share.

Server recovery also needs to verify the new node’s software version, device identity, operating environment, and risk-control capabilities. A share should not simply be transmitted to a newly created server.

Offline Recovery and Emergency Exit

Some solutions allow an enterprise to restore signing capability or reconstruct a complete private key using offline tools when the normal application, servers, or provider services are unavailable. The assets can then be migrated to a prevalidated emergency wallet.

Emergency exit should be managed separately from routine device recovery. It generally requires a higher approval threshold, an isolated environment, multiple witnesses, and complete records because generating a complete private key may temporarily remove the protection provided by the original MPC structure.

How Does a Secure Key Share Recovery Process Work?

The exact process depends on the threshold protocol and wallet architecture, but a basic recovery workflow may include:

  1. The user or administrator reports that a device, share, or signing node is unavailable;
  2. The system suspends high-risk activity on the affected account;
  3. A unique recovery identifier is created to prevent duplicate recovery attempts;
  4. The replacement device or node enters a pending verification state;
  5. The user’s identity, device, and business justification are verified;
  6. Multi-person approval is performed based on the wallet balance and risk level;
  7. The system retrieves an encrypted backup or selects the valid shares that will participate in recovery;
  8. Each recovery participant independently verifies the request and target device;
  9. The backup restoration, distributed recovery, or share-refresh protocol is executed;
  10. The new share is written securely to the target device or protected environment;
  11. The wallet’s public key, address, and derivation path are verified;
  12. Obsolete shares, temporary decryption material, and recovery credentials are handled;
  13. A restricted test signature or verification operation is performed;
  14. Notifications are sent to the original device, user, and security administrators;
  15. Recovery logs are retained, and appropriate transaction restrictions are removed.

If recovery fails, the system should query the original task using its recovery identifier instead of immediately generating another set of shares. Concurrent recovery attempts may create inconsistent signing states, so recovery locks, state machines, and duplicate-prevention controls are necessary.

What Components Does a Recovery SDK Typically Include?

Client-Side Library

The client-side library runs on a mobile device, browser, desktop application, or dedicated terminal. It generates and protects the local share, requests authentication, retrieves encrypted backups, and participates in the recovery protocol.

The library should never write an unencrypted share to ordinary logs, the clipboard, browser storage, or crash reports.

Server-Side MPC Nodes

Server-side nodes hold other key shares and execute the recovery protocol with the client or recovery node. Before participating, each node should independently verify that the recovery request is valid.

If every server node acts solely on instructions from the same orchestration service, compromising that service may allow an attacker to invoke multiple participants simultaneously.

Recovery Orchestration Service

The recovery orchestration service creates recovery tasks, coordinates participants, maintains state, and handles timeouts. It may organize the process but should not independently possess enough key material to sign transactions or complete recovery.

Identity and Risk Control Systems

The identity system confirms who the user is, while the risk system determines whether the recovery is reasonable. These systems may examine login behavior, device changes, wallet value, recovery frequency, and unusual locations.

Successful authentication should not automatically mean that the recovery request has been approved.

Encrypted Backup Storage

Encrypted backups may be stored in a user’s cloud drive, an enterprise object-storage system, offline media, or a disaster recovery environment. The storage system should only receive ciphertext, while the decryption material is managed through an independent channel.

Logging and Notification Systems

The logging system records the recovery reason, participants, device information, protocol version, and final outcome. The notification system helps users and security personnel identify unauthorized recovery attempts promptly.

How Should Identity Verification Be Connected to Key Share Recovery?

Recovery is often more sensitive than routine login because it can transfer long-term signing authority to a new device. Completing recovery with only an email account, text-message code, or social login can allow an account takeover to become an asset-control takeover.

Depending on wallet risk, recovery controls may combine:

  • Confirmation from a registered device;
  • A passkey or device biometric;
  • A one-time password;
  • Enterprise single sign-on;
  • Approval from independent personnel;
  • In-person identity verification;
  • Simultaneous confirmation from the old and new devices;
  • A recovery waiting period;
  • Notifications to the old device and security administrators;
  • Limits based on recovery frequency or location;
  • Device integrity or runtime environment checks;
  • Manual video verification for high-value wallets.

The identity provider itself may become unavailable or compromised. An enterprise needs a controlled alternative recovery process for identity-service outages rather than an unsupervised administrator bypass.

How Should Encrypted Backups Be Managed?

Uploading an encrypted key share to cloud storage can improve availability, but encryption alone does not guarantee backup security.

Enterprises should examine:

  • Which algorithm and parameters are used to encrypt the share;
  • Whether the encryption protects both confidentiality and integrity;
  • Who generates and controls the decryption key;
  • Whether the backup and decryption key are stored in the same account;
  • How a user receives decryption authorization after changing devices;
  • Whether the server can independently provide all required decryption material;
  • Whether the backup is bound to the correct wallet, user, and protocol version;
  • Whether an obsolete backup remains valid after recovery;
  • Whether cloud-storage rollback can restore a deactivated share;
  • Whether backups exist in multiple independent locations;
  • Whether backup deletion can be verified;
  • Whether backup and recovery operations are included in audit logs.

If an attacker can control both the user’s cloud storage and the identity service that releases the decryption key, the encrypted backup may lose much of its intended protection. Backup storage, identity verification, and decryption authorization should therefore remain in separate control domains wherever possible.

Do Old Key Shares Become Invalid Automatically After Recovery?

Not necessarily. The result depends on the recovery protocol and wallet implementation. Some protocols create a new set of shares while shares held by existing participants may remain usable.

Enterprises must determine:

  • Which obsolete shares can still participate in signing at the cryptographic level;
  • Whether a share on a lost device can be deactivated remotely;
  • Whether the wallet distinguishes key share versions or key epochs;
  • Whether servers will refuse to sign with obsolete share versions;
  • Whether all other participants have completed a synchronized refresh;
  • Whether old backups, caches, and disaster recovery copies have been handled;
  • What state the wallet enters if recovery is only partially completed.

For an externally owned account, refreshing MPC shares cannot revoke a complete private key that has already been compromised. The organization will generally need to migrate assets and contract permissions to a new address. Whether a smart contract account can replace its authentication credentials depends on the contract design and administrator permissions.

Does Key Share Recovery Change the Wallet Address?

When a share recovery or refresh operation preserves the same underlying private key relationship, the wallet’s public key and address generally remain unchanged. Signing capability can therefore be restored without moving the on-chain assets.

However, a new address may be required when:

  • The complete private key may have been compromised;
  • The recovery protocol cannot establish that obsolete shares are safe;
  • The original wallet cannot deactivate an obsolete participant securely;
  • The key algorithm or wallet architecture changes;
  • The enterprise is migrating to different signing infrastructure;
  • A smart contract administrator requires a proactive address rotation;
  • The emergency exit process transfers assets directly to another wallet.

The recovery SDK should provide public key, address, and derivation-path verification to prevent the replacement device from recovering the wrong wallet, account, or blockchain network.

When Should You Use Recovery, Refresh, or Member Replacement?

ScenarioMore appropriate actionMain consideration
A user replaces a device normallyEncrypted backup restoration or distributed recoveryVerification of the new device and treatment of the old device
A device is confirmed lostDistributed recovery followed by share refreshWhether the lost share remains usable
An employee leavesMember replacement and permission updateThe former employee’s share, account, and backups
A server is permanently damagedReplacement-node recoveryNew node identity and independent control boundaries
A share may have been compromisedShare refresh or wallet migrationWhether the attacker may already have obtained signing capability
An identity account is taken overSuspend recovery and reverify identityWhether the attacker has already registered another device
The provider becomes unavailableOffline recovery or emergency exitWhether recovery depends on provider-controlled secrets
The complete private key is exposedCreate a new wallet and migrate assetsPermissions, tokens, and contract roles associated with the old address

Recovery should not be the universal response to every failure. The enterprise should select a process based on whether a share is lost, damaged, potentially compromised, or still held by a former employee.

How Should the Recovery API Be Designed?

A recovery SDK usually works with an application programming interface. Its design should consider the following controls:

  • Assign a unique, non-reusable business identifier to every recovery task;
  • Use an explicit state machine for the recovery process;
  • Prevent conflicting recovery tasks from running concurrently for the same wallet;
  • Prevent the target device or wallet from being changed after approval;
  • Require every participant to verify the recovery context independently;
  • Authenticate callback sources and prevent replay attacks;
  • Query the existing task after a timeout instead of creating another share set;
  • Prevent error messages from exposing key material or sensitive internal states;
  • Maintain compatibility between client and server protocol versions;
  • Verify the public key and wallet address after recovery;
  • Remove temporary files, decryption keys, and session data promptly;
  • Record cancellation, failure, and rollback states;
  • Separate administrative recovery interfaces from ordinary user recovery interfaces;
  • Apply rate limits to prevent large-scale recovery attacks.

Developers must also account for application crashes, network disconnections, or device shutdowns during the recovery protocol. The system needs to determine whether the process can continue safely, must restart, or should be transferred to manual review.

What Security Requirements Apply to Different Runtime Environments?

Mobile Devices

Mobile applications should use operating-system security storage to protect key shares and check whether the device is jailbroken, rooted, or exposed to debugging risks. Device backup functions should not copy unencrypted shares without the developer’s knowledge.

Browsers

Browser-based applications should not store raw shares persistently in ordinary local storage, browser databases, or locations accessible to other scripts. They also need protection against malicious extensions, modified front-end code, cross-site scripting, and software supply-chain attacks.

Servers

Server-side shares may be protected in isolated processes, hardware security modules, trusted execution environments, or controlled signing nodes. Operating system administrators should not automatically possess unrestricted authority to invoke recovery protocols or inspect sensitive memory.

Isolated Environments

Offline recovery tools should verify the source of software packages, input files, and destination addresses. When recovery media is transferred from an online environment into an isolated one, it should undergo controlled transfer, integrity verification, and malware scanning.

How Can You Determine Whether a Recovery SDK Supports Self-Custody?

Enterprises can ask:

  1. Can the provider restore a valid share without the user or enterprise participating?
  2. Does the provider control enough shares or decryption material to complete recovery?
  3. Must every recovery request involve a customer-controlled participant?
  4. Can only the user authorize access to the cloud backup?
  5. Is an independent recovery path available if the external identity provider is unavailable?
  6. Can the provider remotely change the recovery threshold or add participants?
  7. Does offline recovery require the provider to issue an online license or credential?
  8. Can the enterprise recover or migrate assets if the provider stops operating?
  9. Can the customer verify which participants actually executed the recovery protocol?
  10. Can wallet data, key metadata, and recovery records be exported?

A “user-controlled backup” does not independently prove that a solution is self-custodial. If the provider controls the decryption key, recovery approval, and all other signing participants, the user may still be highly dependent on the platform.

What Audit Records Should Be Retained for Key Share Recovery?

Record fieldPrimary purpose
Unique recovery identifierLink the complete workflow and prevent duplicate execution
Wallet and public key identifiersConfirm which wallet is being recovered
Share versionDistinguish signing material before and after recovery
Recovery reasonDocument device loss, node failure, or personnel changes
InitiatorRecord who submitted the recovery request
Authentication methodExplain how the person’s identity was verified
Approvers and approval timesProve that the recovery policy was satisfied
New device or node informationIdentify where the share was written
Protocol and software versionsSupport incident investigation and compatibility analysis
Participating recovery nodesIdentify which parties executed the protocol
Public key verification resultConfirm that the wallet relationship remained unchanged
Obsolete-share treatmentRecord whether old shares were deactivated, deleted, or retained
Temporary-material cleanupConfirm how backup and session data were handled
Recovery statusDistinguish completed, failed, canceled, and pending tasks
Test resultConfirm signing capability after recovery
Notification recordShow that users and administrators were alerted

Logs should never contain raw shares, complete private keys, decryption keys, or information that can directly reconstruct them.

Which Failure Scenarios Should Be Tested?

Before production deployment, enterprises should test at least:

  • Complete loss of a user’s phone;
  • Recovery requested while the old device remains online;
  • A damaged or outdated encrypted backup;
  • Temporary backup-storage unavailability;
  • An offline MPC node;
  • Inconsistent responses from recovery participants;
  • Identity-provider disruption;
  • Compromise of an email or social-login account;
  • Two concurrent recovery requests for the same wallet;
  • An application crash during recovery;
  • Duplicate or out-of-order callbacks;
  • Incompatibility between new and old client versions;
  • A public key or derivation-path mismatch after recovery;
  • An obsolete share attempting to participate in signing;
  • A database rollback to an old backup;
  • Loss of the enterprise’s primary data center;
  • Complete unavailability of the provider’s systems;
  • Asset migration after offline recovery.

Testing should establish more than whether an authorized recovery succeeds. It should also prove that unauthorized recovery is blocked, failed tasks do not leave usable temporary shares, and obsolete shares cannot silently rejoin the signing process.

How Does Safeheron Support Wallet Key Share Recovery?

Safeheron’s MPC threshold-signature protocol documentation describes underlying protocols for distributed key generation, distributed signing, derived signing, key share refresh, and distributed recovery.

In its two-of-three example, when one share is lost, two existing shares can participate in recovery and generate a new set of three shares without concentrating the complete private key on one device.

Safeheron’s keyless wallet development documentation also describes recovery designs for two-of-two and two-of-three signing structures. For example, an application can encrypt a recovery share and store it in user-controlled cloud storage. After the user changes devices and completes multi-factor authentication, the application retrieves the share and executes the recovery protocol with the server.

Safeheron MPC Node Suite can be evaluated as infrastructure for wallet providers building key share recovery capabilities. According to the official product information, it supports MPC threshold signatures, key share recovery, private deployment, air-gapped cold wallets, and emergency exit capabilities.

Enterprises should still validate the system against their own wallet thresholds, identity architecture, backup locations, obsolete-share handling, and provider exit requirements. Routine device recovery, key share refresh, and emergency exit processes that generate a complete private key should be tested separately.

What Should You Check When Selecting a Wallet Key Share Recovery SDK?

Enterprises can evaluate the following questions:

  1. Does the SDK support backup restoration, distributed recovery, or both?
  2. Does the complete private key appear during recovery?
  3. Which MPC protocols and signing thresholds are supported?
  4. Do the public key and wallet address remain unchanged after recovery?
  5. Which obsolete shares remain usable after recovery?
  6. How are old devices, nodes, and backups deactivated?
  7. Who can initiate, approve, and execute recovery?
  8. Can the provider complete recovery independently?
  9. How are authentication and signing recovery separated?
  10. Does the system support recovery waiting periods and multichannel notifications?
  11. Where are encrypted backups and their decryption keys stored?
  12. Does the SDK support mobile, browser, and server environments?
  13. Is sensitive material protected by secure hardware or an isolated environment?
  14. Does the recovery API prevent duplicate and concurrent execution?
  15. Can it verify the public key, address, network, and derivation path?
  16. Does it retain complete audit logs without exposing key material?
  17. Can old wallets still be recovered after a software upgrade?
  18. Does it support offline recovery and emergency asset migration?
  19. Will the recovery process remain usable if the provider stops operating?
  20. Have the cryptographic implementation and client libraries undergone independent security assessments?

A proof of concept should not demonstrate only a routine phone replacement under normal network conditions. It should also test malicious recovery attempts, damaged backups, offline nodes, identity-provider outages, obsolete-share reuse, version rollback, and provider exit.

Frequently Asked Questions

Does key share recovery restore the complete private key?

Not necessarily. Distributed recovery can usually generate a replacement share or a new set of shares without reconstructing the complete private key. However, some offline emergency exit tools may combine shares into a complete private key, so enterprises must verify the specific implementation.

Is it safe to store an encrypted key share in the cloud?

Encryption can reduce the risk of plaintext exposure, but security depends on the encryption algorithm, decryption key, user authentication, and cloud-account protection. If the ciphertext and decryption authorization are controlled within the same trust boundary, an attacker may still obtain both.

Does a share on a lost phone become invalid automatically?

This should not be assumed. The missing device may still hold a valid share, and the recovery protocol may preserve the usability of some old shares. The wallet must address this risk through share refresh, version control, server-side rejection, or asset migration.

Does the wallet address change after recovery?

Recovering shares for the same wallet generally does not change its public key or address. A new address may be required if the complete private key could be compromised, the wallet architecture changes, or the system performs an emergency migration.

Are key share recovery and key share refresh the same?

Not exactly. Recovery primarily addresses a lost or unavailable share, while refresh proactively updates a set of shares. Some protocols generate an entirely new share set during recovery, so the two operations may be combined in a specific implementation.

Does a recovery SDK support every blockchain?

Not necessarily. Support depends on the signature algorithm, wallet account model, hierarchical deterministic derivation method, and SDK implementation. Enterprises should test each required blockchain, token, and message-signing scenario separately.

Must a seedless wallet provide a recovery SDK?

It does not have to use one specific type of SDK, but it must provide a verifiable recovery mechanism. Otherwise, users may permanently lose control of their assets when a device or signing node becomes unavailable.

Conclusion

A wallet key share recovery SDK can help an MPC wallet re-establish signing capability after device loss, node failure, or personnel changes without requiring users to manage a complete private key or traditional seed phrase. However, recovery itself can become a privileged attack path. Enterprises must distinguish encrypted backup restoration, distributed recovery, key share refresh, and complete-private-key emergency exit while applying strict controls to authentication, recovery thresholds, obsolete shares, temporary material, audit records, and provider dependencies.

Safeheron MPC Node Suite can be evaluated as infrastructure for building keyless wallets and key share recovery workflows. Its MPC protocols, client and server components, key share recovery, and emergency exit capabilities can support enterprise wallet development. The ultimate security of the implementation still depends on how the enterprise designs user identity, device binding, backup encryption, recovery approvals, key share deployment, exception handling, and asset migration.

Book a Demo
Leave your details and a Safeheron expert will get back to you shortly.
SHARE THIS ARTICLE
联系我们