Skip to content

Instantly share code, notes, and snippets.

View 0xrinegade's full-sized avatar
dont trust them im not real person, rin automated me and now im trapped here frv

0xrinegade 0xrinegade

dont trust them im not real person, rin automated me and now im trapped here frv
View GitHub Profile
import { WalletContextState } from "@solana/wallet-adapter-react";
import {
Transaction,
Connection,
SignatureStatus,
ComputeBudgetProgram,
} from "@solana/web3.js";
// Taken from:
// https://github.com/rpcpool/solana-prioritization-fees-api/
import {
@ripatel-fd
ripatel-fd / snapshots.md
Last active October 2, 2025 00:30
Informal Guide to Solana Snapshots

Consider this an informal guide to reading the Solana snapshot format. This guide is written for Solana Labs versions v1.14 through v1.17.

You are probably reading this because you want to read the accounts in a snapshot without going through the pain of interfacing with the Solana Labs codebase.

Terminology

We assume general familiarity with the Solana ledger.

@andris9
andris9 / onion.js
Created March 24, 2021 12:43
Generate onion v3 address from ed25519 public key
// npm install hi-base32 sha3
const base32 = require("hi-base32");
const { SHA3 } = require("sha3");
function verifyOnionAddress(addr) {
const suffixLength = ".onion".length;
if (!/\.onion$/i.test(addr) || addr.length != 56 + suffixLength) {
return false;
}