Solana: What to do with recovered account from failed deployment / deployment 2nd signer?

Recovery of Recovered Salt Accounts: Step by Step Guide

Solana: What to do with recovered account from failed deployment / deployment 2nd signer?

The removal or loss of an intermediate account. Fortunately, the “Solana-goygen” tool provided a powerful solution to recovered accounts.

In this article,

Step 1: Recovery of the Seed Keyboard

. Tool with the following Command:

`Bash

Solana -Kygen Recovery -o Recovery.json

Replace 'Path to the Recovered Toedphrase File.

Step 2: Recovery of An Ephemeral Keyboard

Then you need to recover the ephemeral keyboard from an intermediate account. The Ephemeral key is a random key used to sign transactions and interaction with the solana network.

You can re-use the "Solana-Kygen" tool to recover the Ephemeral Keyboard:

Bash

Solana -Kygen Recovery -o Recovery.json

Replace 'on the path to the recovered toedphrase file.

Step 3: Recovered Keyboards*

, When you have both phrase and ephemeral keyboard,

To do this, create a new implementation script that uses these keyboards:

Python

Z Solana.Publickey Import Pubkey

Solan import

Def Main ():

Load the Seed phrase from the File

with open ("regained_sephrases_file.json") as f:

recovered_sephrazy = json.lylad (f)

Create a new implementation script that uses an ephemeral keyboard as the second signature

Program_id = "twój_program_id"

Account_keyid = pubkey.from_secret_key (recovered_sephrazy ['second_signer'] ['secret']))

args = {

"Program_id": Program_id,

"Accounts": [

(CONCT_KEYID, 0),

(Recovered_efrazy ['Seed_phrase'], 1)

]

}

Start the implementation script

Print (f "implementation to {program_id} with a phrase seeds: {recovered_sephraze ['seed_phrase']} and ephemeral keyboard: {regained_sephraze ['second_signer'] ['public_key']}"

Replace “own_program_idwith your solana ID.

Examples of Use

Here is an example of how you can use this implementation script in your anchor implementation:

Yaml

Version: “3”

Services:

implement:

Photo: $ Image_name

Clouds:

-.:/APP

Command: SH -C “$ Shell Scripts/Implementation.sh”

`

.

Application

. The second signatories when the program remains safe and functional.

دیدگاه‌ها

دیدگاهتان را بنویسید

نشانی ایمیل شما منتشر نخواهد شد. بخش‌های موردنیاز علامت‌گذاری شده‌اند *