Skip to content

Instantly share code, notes, and snippets.

Proof SP1ProofWithPublicValues {
proof: Compressed(SP1ReduceProof {
vk: VerifyingKey,
proof: ShardProof
}),
public_values: SP1PublicValues {
buffer: Buffer {
data: [218, 206, 107, 66, 149, 207, 110, 192, 67, 116, 167, 184, 153, 251, 225, 146, 133, 57, 44, 190, 225, 82, 118, 170, 70, 16, 181, 217, 229, 164, 56, 161, 53, 119, 56, 184, 166, 135, 241, 180, 211, 192, 30, 119, 176, 249, 205, 125, 70, 75, 44, 127, 217, 27, 108, 151, 135, 100, 130, 30, 16, 51, 248, 97, 65, 143, 238, 116, 136, 48, 35, 76, 92, 142, 231, 37, 28, 90, 175, 229, 187, 100, 142, 28, 65, 196, 8, 91, 189, 199, 124, 191, 177, 105, 206, 28, 255, 144, 79, 1, 0, 0, 0, 0, 192, 85, 60, 0, 0, 0, 0, 0, 31, 144, 144, 170, 226, 139, 138, 61, 206, 173, 242, 129, 176, 241, 40, 40, 230, 118, 195, 38, 145, 147, 85, 151, 96, 242, 25, 32, 140, 2, 21, 34, 30, 51, 4, 31, 97, 120, 34, 153, 216, 46, 156, 235, 40, 79, 218, 20, 88, 43, 31, 175, 130, 190, 235, 75, 40, 100, 157, 159, 238, 238, 245, 173, 161, 174, 118, 204, 4, 229, 235,
@rootulp
rootulp / forge-selectors.txt
Last active March 23, 2025 21:50
Forge selectors from solidity-ibc-eureka repo
Listing selectors for contracts in the project...
ICS20Transfer
╭----------+-------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------╮
| Type | Signature | Selector |
+=========================================================================================================================================================================================================+
| Function | DEFAULT_ADMIN_ROLE() | 0xa217fddf |
|----------+-------------------------------------------------------------------------------------------------------------------------+---------
{
"trustedClientState": "000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000012750000000000000000000000000000000000000000000000000000000000001baf8000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000a7a6b6962632d64656d6f00000000000000000000000000000000000000000000",
"trustedConsensusState": "0000000000000000000000000000000000000000000000000000000067ddd460abb8982d8a6f5d4070a8f03058d4b7d9efaaf38dcd0e3260dd273ce18d0e3371bc4b9aae47a39635413417f7104fff9f09984d9e5f7b543e93227061c956457a",
"
@rootulp
rootulp / debug-share.txt
Created March 18, 2025 17:05
debug a share
[0 , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 1 , 0, 0, 10, 211 , 0, 0, 0, 38 , 147, 2 , 10, 135, 2, 10, 160, 1, 10, 157, 1, 10, 32, 47, 99, 101, 108, 101, 115, 116, 105, 97, 46, 98, 108, 111, 98, 46, 118, 49, 46, 77, 115, 103, 80, 97, 121, 70, 111, 114, 66, 108, 111, 98, 115, 18, 121, 10, 47, 99, 101, 108, 101, 115, 116, 105, 97, 49, 53, 114, 100, 100, 112, 119, 106, 102, 53, 51, 113, 108, 107, 109, 113, 114, 121, 51, 110, 97, 57, 99, 97, 115, 99, 119, 108, 99, 57, 120, 103, 114, 118, 115, 52, 107, 104, 55, 18, 29, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 202, 29, 225, 42, 76, 243, 32, 118, 79, 165, 26, 2, 209, 41, 34, 32, 102, 64, 43, 118, 154, 229, 79, 221, 195, 111, 221, 255, 129, 166, 92, 97, 138, 196, 27, 124, 149, 11, 116, 208, 57, 89, 62, 160, 206, 122, 148, 209, 66, 1, 0, 18, 32, 10, 11, 18, 4, 10, 2, 8, 1, 24, 236, 160, 174, 1, 18, 17, 10, 11, 10, 4, 117, 116, 10
@rootulp
rootulp / abci-diagrams.md
Last active February 28, 2025 15:43
ABCI diagrams

ABCI diagrams

Block lifecycle

block-lifecycle

State sync

state-sync

@rootulp
rootulp / ica-pfb-arabica.md
Created September 4, 2024 18:30
Attempt to submit a PFB via ICA on Arabica

Inter Chain Accounts

Notes from creating and testing ICA on testnets.

Prerequisites

  1. Start a Cosmos Hub Testnet node and sync it to the tip.
  2. Start a Arabica node and sync it to the tip.
  3. Install and configure Hermes to relay between these two chains.
    1. Configure Hermes keys with an account on both chains. Get both accounts funded via Discord wallets.
@rootulp
rootulp / voting-period.md
Last active August 29, 2024 20:05
Celestia network voting period

Voting Period

Network Voting Period (nanoseconds) Voting period (days)
arabica-11 604800000000000 7
mocha-4 86400000000000 1
celestia 604800000000000 7

Reference

@rootulp
rootulp / mocha.sh
Created August 21, 2024 21:06
State sync a Celestia consensus node on Mocha
#!/bin/sh
# Stop script execution if an error is encountered
set -o errexit
# Stop script execution if an undefined variable is used
set -o nounset
CHAIN_ID="mocha-4"
NODE_NAME="node-name"
SEEDS="[email protected]:26656,258f523c96efde50d5fe0a9faeea8a3e83be22ca@seed.mocha-4.celestia.aviaone.com:20279,5d0bf034d6e6a8b5ee31a2f42f753f1107b3a00e@celestia-testnet-seed.itrocket.net:11656,7da0fb48d6ef0823bc9770c0c8068dd7c89ed4ee@celest-test-seed.theamsolutions.info:443"
@rootulp
rootulp / arabica.sh
Created August 21, 2024 20:27
State sync a Celestia consensus node on Arabica
#!/bin/sh
# Stop script execution if an error is encountered
set -o errexit
# Stop script execution if an undefined variable is used
set -o nounset
CHAIN_ID="arabica-11"
NODE_NAME="node-name"
SEEDS="827583022cc6ce65cf762115642258f937c954cd@validator-1.celestia-arabica-11.com:26656,74e42b39f512f844492ff09e30af23d54579b7bc@validator-2.celestia-arabica-11.com:26656,00d577159b2eb1f524ef9c37cb389c020a2c38d2@validator-3.celestia-arabica-11.com:26656,b2871b6dc2e18916d07264af0e87c456c2bba04f@validator-4.celestia-arabica-11.com:26656"
#!/bin/bash
SNAP_RPC="https://celestia-rpc.polkachu.com:443"
LATEST_HEIGHT=$(curl -s $SNAP_RPC/block | jq -r .result.block.header.height); \
BLOCK_HEIGHT=$((LATEST_HEIGHT - 2000)); \
TRUST_HASH=$(curl -s "$SNAP_RPC/block?height=$BLOCK_HEIGHT" | jq -r .result.block_id.hash)
sed -i.bak -E "s|^(enable[[:space:]]+=[[:space:]]+).*$|\1true| ; \
s|^(rpc_servers[[:space:]]+=[[:space:]]+).*$|\1\"$SNAP_RPC,$SNAP_RPC\"| ; \