Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

go.sia.tech/skyrecover

Package Overview
Dependencies
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

go.sia.tech/skyrecover

Go Modules
Version
v0.0.0-20221220194040-f393265a7110
Version published
Created
Source

Skynet Recovery Utils

Utilties to recover lost skyd data

extractmeta

Extracts metadata from a .sia file

Building

go build -o bin/ ./cmd/extractmeta

Usage

extractmeta ~/image_download.sia

metabuild

Reconstructs Skyfiles from a local base sector and -extended file

Building

go build -o bin/ ./cmd/metabuild

Usage

# download the base sector and extended file from skyc
skyc renter download /var/skynet/testdir ~/testdir-base
skyc renter download /var/skynet/testdir-extended ~/testdir-extended
# reconstruct the data. outputs each subfile to ~/results
metabuild --skynetdir ~/.skynet --skylink AABl3BTAQL0hoUQW942X1kNBQRDUdBIX-FixOdGz3oNHeA --base ~/testdir-base --extended ~/testdir-extended --output ~/results

skyrecover

Checks the health or attempts to recover a .sia file from skyd. Requires contracts to function, use the sub-commands to send Siacoins and form contracts.

To recover a file, skyrecover will first attempt to recover shards from the host's listed in the .sia file. If that fails, it will check each contracted host for the sectors. For the secondary scan, many contracts are required; there are about 500 active hosts on the network. If skyd had a lot of churn, some sectors may still be recoverable.

The wallet uses a 12-word BIP-39 renterd/walrus recovery phrase rather than a 28/29 word Sia phrase.

Building

go build -o bin/ ./cmd/skyrecover

Get wallet address

RECOVERY_PHRASE="board learn true grain combine pole talent country soon stock juice client" skyrecover -d ~/recovery-data wallet

Redistribute UTXOs

RECOVERY_PHRASE="board learn true grain combine pole talent country soon stock juice client" skyrecover -d ~/recovery-data wallet redistribute 10 100SC

Form contracts

Will attempt to form contracts with each of the specified host public keys.

RECOVERY_PHRASE="board learn true grain combine pole talent country soon stock juice client" skyrecover -d ~/recovery-data contracts form <public key 1> [public key 2]...

Check health

skyrecover -d ~/recovery-data file check ~/photos.jpeg.sia

Recover a file

skyrecover -d ~/recovery-data file recover -i ~/photos.jpeg.sia -o ~/photos.jpeg

skyscan

Scans a downloaded file for a sub-file matching a size and checksum.

Building

go build -o bin/ ./cmd/skyscan

Usage

skyscan --algo sha256 --checksum e9cd47a43126020d93981a859eef38950eaf5d13559132d97d4c5f3281d2a251 --len 342518 --input ~/Downloads/image_download --output ~/Downloads/output.png

FAQs

Package last updated on 20 Dec 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts