Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am rootulp on github.
  • I am rootulp (https://keybase.io/rootulp) on keybase.
  • I have a public key ASAX8pUzu8zYzp-rAVCwmtyGVbL2l_X6xQ5ip0fYwu4urAo

To claim this, I am signing this object:

{
"jsonrpc": "2.0",
"id": -1,
"result": {
"txs": [
{
"hash": "A97BC12DE1295B20EAAD813D4EE1B08022195FB1B7AC21A8BE6364CFA4FEC9B6",
"height": "46",
"index": 0,
"tx_result": {
@rootulp
rootulp / local-celestia-node.md
Last active May 4, 2023 21:44
This document provides instructions on how to connect a local celestia-app instance to local celestia-node bridge node

Local celestia-node

This document provides instructions on how to connect a local celestia-app instance to local celestia-node bridge node.

celestia-app

  1. Delete previous binary

rm $(which celestia-appd)

@rootulp
rootulp / save_bad_data_1.json
Created October 25, 2022 07:10
TestFuzzPrepareProcessProposal: makeslice: len out of range
This file has been truncated, but you can view the full file.
{"txs":["Co4BCosBChwvY29zbW9zLmJhbmsudjFiZXRhMS5Nc2dTZW5kEmsKLWNvc21vczEzZmc2aDk4MmNtN3FqcjY4Y2ZubnkycHRxbGt4ZnUweTJ1MzVtZxItY29zbW9zMTNmZzZoOTgyY203cWpyNjhjZm5ueTJwdHFsa3hmdTB5MnUzNW1nGgsKBHVjbHMSAzEwMBJjCk4KRgofL2Nvc21vcy5jcnlwdG8uc2VjcDI1NmsxLlB1YktleRIjCiECiqaxLM8DKo4p+5VJfbt+0hnRSD6f9ObWfvVKEzLD/t4SBAoCCAESEQoJCgR1Y2xzEgExEICU69wDGkCxCHiSj9lx8Fhes5FRMn27zthfkyZBZlGWydtukrJgJkAFL8B/pkeGTCiS7o4UlfbUrhSZSXGICpTPKXQjaF2+","Co4BCosBChwvY29zbW9zLmJhbmsudjFiZXRhMS5Nc2dTZW5kEmsKLWNvc21vczEzZmc2aDk4MmNtN3FqcjY4Y2ZubnkycHRxbGt4ZnUweTJ1MzVtZxItY29zbW9zMTNmZzZoOTgyY203cWpyNjhjZm5ueTJwdHFsa3hmdTB5MnUzNW1nGgsKBHVjbHMSAzEwMBJjCk4KRgofL2Nvc21vcy5jcnlwdG8uc2VjcDI1NmsxLlB1YktleRIjCiECiqaxLM8DKo4p+5VJfbt+0hnRSD6f9ObWfvVKEzLD/t4SBAoCCAESEQoJCgR1Y2xzEgExEICU69wDGkCxCHiSj9lx8Fhes5FRMn27zthfkyZBZlGWydtukrJgJkAFL8B/pkeGTCiS7o4UlfbUrhSZSXGICpTPKXQjaF2+","Co4BCosBChwvY29zbW9zLmJhbmsudjFiZXRhMS5Nc2dTZW5kEmsKLWNvc21vczEzZmc2aDk4MmNtN3FqcjY4Y2ZubnkycHRxbGt4ZnUweTJ1MzVtZxItY29zbW9zMTNmZzZoOTgyY203cWpyNjhjZm5ueTJwdHFsa3hmdTB5MnUzNW1nG
@rootulp
rootulp / tendermint-markdownlint-output.txt
Last active October 18, 2022 17:12
A list of markdownlint issues in the tendermint/tendermint repo
abci/example/kvstore/README.md:7:59 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]
abci/example/kvstore/README.md:30:61 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]
CHANGELOG_PENDING.md:18:1 MD007/ul-indent Unordered list indentation [Expected: 4; Actual: 2]
CHANGELOG_PENDING.md:21:1 MD007/ul-indent Unordered list indentation [Expected: 4; Actual: 2]
CHANGELOG_PENDING.md:44:1 MD007/ul-indent Unordered list indentation [Expected: 4; Actual: 2]
CHANGELOG_PENDING.md:47:1 MD007/ul-indent Unordered list indentation [Expected: 4; Actual: 2]
CHANGELOG_PENDING.md:48:1 MD007/ul-indent Unordered list indentation [Expected: 4; Actual: 2]
CHANGELOG_PENDING.md:49:1 MD007/ul-indent Unordered list indentation [Expected: 4; Actual: 2]
CHANGELOG_PENDING.md:50:1 MD007/ul-indent Unordered list indentation [Expected: 4; Actual: 2]
CHANGELOG_PENDING.md:51:1 MD007/ul-indent Unordered list indentation [Expected: 8; Actual: 4]

0x02888f73b3f6eabee8e2f6588f5580b79bf228b088d1180da4807e2e8b9b70f8

# SPDX-License-Identifier: MIT
%lang starknet
from starkware.cairo.common.cairo_builtins import HashBuiltin
from starkware.cairo.common.uint256 import Uint256
from openzeppelin.token.erc721.library import (
ERC721_name,
ERC721_symbol,
@rootulp
rootulp / attestation.txt
Created April 10, 2022 17:31
Attestation
I contributed to the Semaphore Trusted Setup Multi-Party Ceremony.
The following are my contribution signatures:
Circuit: semaphore16
Contributor # 269
Hash: 74ecbdb6 4e83b2ba 06b40f2a 13c76b69
34c9673e b466bf48 dfd59310 27c136ae
78a941f2 ae872050 c3bf5ac9 f0e2ee81
7b862945 890063e7 7df29f2f bc10f7dd
@rootulp
rootulp / docker-compose.yml
Last active November 26, 2021 05:45 — forked from tedder/docker-compose.yml
helium validator + watchtower (with consensus check) + exporter
# Source: https://gist.github.com/tedder/e40460e92adbff07f6890806e12eb444
# launch: docker-compose up -d
version: "3.7"
services:
validator:
image: quay.io/team-helium/validator:latest-validator-amd64
container_name: validator
init: true
restart: always
ports:
@rootulp
rootulp / convert.ts
Created June 27, 2021 18:36
Query ERC20 token balance on Elrond
export function convertBigEndianArray(arr: Uint8Array): number {
let sum = 0;
for (let i = 0; i < arr.length; i++) {
sum *= 256;
sum += arr[i];
}
return sum;
}