Skip to content

Instantly share code, notes, and snippets.

View crypt0miester's full-sized avatar

Cryptomiester crypt0miester

View GitHub Profile
@crypt0miester
crypt0miester / bench-setup-tape-vs-rustfs-public.md
Created September 29, 2026 13:39
tapedrive vs rustfs bench setup

tapedrive vs rustfs: bench setup, 2026-09-29

box

  • bare metal AMD Ryzen 9 9950X (16C/32T), 121 GB RAM
  • one Samsung PM9A3 960 GB U.2 NVMe, ext4 on LVM, rated ~1.5 GB/s sequential write, power-loss protected
  • Ubuntu 26.04, kernel 7.0, governor performance, ulimit -n 1048576
  • everything on loopback, one side up at a time, the other fully down

software

@crypt0miester
crypt0miester / sha256-full-writeup.md
Created July 29, 2026 07:56
tape-sha256 vs Firedancer — full write-up (method, per-CPU tables, claims guidance, loose ends)

Tape sha256 vs Firedancer

Method

Workload is one Solana erasure batch of Merkle leaves. 64 leaves (32 data + 32 coding shreds), each a 26-byte domain-separation prefix plus roughly 1 KB of payload, 67,680 bytes per batch. Reported time is best of 15 rounds of 50 iterations, cargo bench --bench merkle_leaves.

Every figure is single threaded. One thread, pinned with taskset to one physical core of an otherwise idle machine, with that core's SMT sibling also idle. The one exception is the SMT pairing table, which is explicitly two threads on the two siblings of one core.

Firedancer was built from source on the same machine with its matching profile, so each comparison is same session. Absolute numbers drift a few percent between sessions on cloud hardware, so only same-session pairs mean anything. The Firedancer rows call fd_sha256_private_batch_{avx,avx512} directly, which is the strongest batch implementation we know of. The sha2 row is what agave's leaf hashing does today, and it uses SHA-N

@crypt0miester
crypt0miester / clay-vs-ceph.md
Created July 29, 2026 07:55
clay-codes vs Ceph — AMD Zen 5 (EPYC 9B45)

clay-codes vs Ceph

AMD Zen 5 (EPYC 9B45, GCP c4d), GFNI + AVX-512. All three arms on one host, one session. Single-thread, taskset -c 2, SMT sibling idle. Throughput is GB/s of object bytes. Ceph 19.2.5 squid (stable) — see the last section.

arm codec GF backend
A clay-codes + tape-reed-solomon (Rust) GFNI / AVX-512
B Ceph, mds=jerasure (Ceph default) SSE4
@crypt0miester
crypt0miester / raw.txt
Created July 29, 2026 07:54
tape-sha256 vs firedancer — AMD Zen 5 (EPYC 9B45)
--- invocation 1 ---
Updating crates.io index
Downloading crates ...
Downloaded block-buffer v0.10.4
Downloaded cpufeatures v0.2.17
Downloaded rustc_version v0.4.1
Downloaded curve25519-dalek-derive v0.1.1
Downloaded generic-array v0.14.7
Downloaded ed25519-dalek v2.2.0
Downloaded crypto-common v0.1.7
@crypt0miester
crypt0miester / tape-reed-solomon.md
Last active July 29, 2026 07:59
tape-reed-solomon vs firedancer — AMD Zen 5 (EPYC 9B45)

tape-reed-solomon encode vs Firedancer

AMD Zen 5 (EPYC 9B45, GCP c4d), GFNI + AVX-512, gcc 15.2, rustc 1.97.1. Single-thread, taskset -c 2, SMT sibling idle. Payload MiB/s (k × shard size).

Parity verified byte-identical against reed-solomon-erasure for tape, sia and firedancer on every supported shape, so the ratios compare identical output.

shape arm 100 B 1 KB 10 KB 100 KB 1 MB
@crypt0miester
crypt0miester / get-alldomains-main-domain.md
Created May 17, 2025 12:45
Get AllDomains main domains

AllDomains Main Domain API

This README documents the API endpoints for querying main domains by Solana pubkey, both individually and in batch.

Website: https://alldomains.id


Endpoints

@crypt0miester
crypt0miester / alldomains-monad-api.md
Created April 11, 2025 07:31
Code to when partners are not able to use @onsol/tldparser package. under the hood we are using @onsol/tldparser.

AllDomains Monad API Documentation

This document provides client-side usage details for three API endpoints related to domain querying for AllDomains on the Monad Testnet network. Each endpoint is a GET request, designed to retrieve domain-related information. Below, you'll find detailed descriptions, parameters, response formats, and examples for each endpoint, formatted for clarity and ease of use.

Endpoints

1. Get Domain Owner

  • URL: https://monad.alldomains.id/api/domain-owner/[domain]
  • Method: GET
/**
* @module all-domain-service
* utility functions for managing svm domain names
*/
import {
ANS_PROGRAM_ID,
TLD_HOUSE_PROGRAM_ID,
getHashedName,
NameRecordHeader,
import { Keypair, PublicKey } from '@solana/web3.js';
import * as argon2 from 'argon2';
import crypto from 'crypto';
import { sign } from 'tweetnacl';
interface KeygenParams {
passCode: string;
appName: string;
userId?: string; // Optional unique identifier