Skip to content

BHawleyWall/solception

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Solana Inception Command-Line Tool

A command-line tool for discovery of the origin timestamp for any Solana program deployed to the blockchain.

solc is a simple tool that can be used to verify the authenticity of a Solana program by checking the timestamp of its deployment on the ledger. This is useful for verifying the origin of a program, especially when the program is not open-source or when the program is not deployed by the original author.

Installation

Currently, the tool is available only through this repository.

Local Build

You can clone the repository and build the tool using the Rust toolchain. If you don't have Rust installed, you can install it using rustup. You can find the installation instructions here.

$ git clone BHawleyWall/solception
$ cd solception
$ cargo build --release

Docker

You can also build the tool using Docker. The Dockerfile is included in the repository.

$ git clone BHawleyWall/solception
$ cd solception
$ docker build -t solc .

Usage

This tool requires the program ID of the Solana program to be verified. The program ID is a base 58 address for the Program Data Account on the blockchain.

Command Line

$ ./target/release/solc --help

Docker

$ docker run solc --help

Documentation

The tool uses the Solana RPC API to query the ledger for the timestamp of the program deployment transaction. The program ID is used to query the transaction history of the account and retrieve the timestamp of the first transaction that deployed via the BPF Loader for that account.

These transaction queries are pushed in parallel to the Solana RPC API to speed up the process. The tool uses the rayon crate to power the concurrency from a synchronous context. This bottlenecks the performance directly on the throttling employed by the target RPC node. Using a private, full-history node with no rate limits is recommended for best performance.

License

This project is licensed under the GNU General Public License - see the LICENSE file for details.

Contributing

Currently, the project is in its early stages and is not accepting contributions. However, feel free to open an issue if you have any suggestions or feedback.

About

A command-line tool for discovery of the origin timestamp for any Solana program deployed to the blockchain.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors