Skip to content

Instantly share code, notes, and snippets.

@plowsof
plowsof / i2pzero_to_i2pd.md
Last active March 9, 2024 22:25
i2pzero to i2pd

Install i2pd debian/ubuntu:

sudo add-apt-repository ppa:purplei2p/i2pd
sudo apt-get update
sudo apt-get install i2pd

stop i2pzero service

@plowsof
plowsof / bp++_cypherstack_feedback_1.md
Created August 18, 2023 07:02
bp++ cyperstack feedback 1

Initial feedback received from CypherStack for the latest blockstream BP++ paper:

There are several aspects of the preprint that should be considered out of scope for a review:

  • Multiparty computation. There are no specific protocols presented for this, and no corresponding security model of proofs of security.
  • Batch verification. While the preprint mentions that BP++ supports batch verification, it provides no details on the corresponding algebra.
  • Multi-asset transactions. The preprint discusses multi-asset transactions in the context of its protocols, but these are not required for range proofs.
  • Optimized binary range proofs. The protocol proposed for optimized binary range proofs has only an informal and vague security proof that is insufficient to assert the claims of the corresponding theorem.
@plowsof
plowsof / seraphis_scope_1.md
Created August 18, 2023 06:56
seraphis rough scope of work 1

Jberman / Kayaba / Koe have helped created a rough scope of initial work for the Seraphis papers which can be seen below.

  • Read through the Seraphis papers (the paper describing the transaction protocol and its companion paper spec'ing its implementation)
  • Establish a formal security model to prove Seraphis secure under.
    • Section 1.2 in the Seraphis paper sketches a model but is light on details. Plausible path: rework section 1.2 such that it can be formalized in terms of algorithms and/or experiments.
  • Formalize the respective algorithms in the instantiation of Seraphis and see if the Seraphis construction is amenable to proofs under the chosen security model.
    • If the Seraphis construction is not amenable to a chosen security model, then it would still be useful to formalize security proofs for individual components of Seraphis (membership, ownership, unspentness, amounts balance).
  • One researcher we've contacted sugges
curl -X POST http://node.monerodevs.org:38081/sendrawtransaction -d '{"do_not_relay": true, "tx_as_hex":"020001020010d6d9a8028a8e2cbdd235d1a002f38801b9f902f626fb3af7b1018f18fd20cb05d503589b02b30929df575c1dee761381c05421336f91164a070c086899f0f78e792be725286507020003f0c6eebde0f0934f1ba10bde4cf2ac9fa14a2967c633579bfb35c829673264e2c300030cb993572313a54856484f8c63261e2a24eaf34a0de3b23e0281c068188cbe5847e01301536532415091372f4b4da454a073bfad0a865e35fc5e59a58636778ff8696e4802090103d9dbb638a157b010d11289504e470d0a1a0a0000000d494844520000040000000300080200000035d8825a00000006624b474400ff00ff00ffa0bda7930000090649444154789cedc13101000000c2a0f54f6d0d0fa00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
@plowsof
plowsof / gen_accounts.sh
Last active February 18, 2023 05:57
benchmark creating 300 accounts with 5k sub addresses each then saving / opening
curl http://localhost:18092/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"create_wallet","params":{"filename":"brb20hours","password":"","language":"English"}}' -H 'Content-Type: application/json'
curl http://localhost:18092/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"open_wallet","params":{"filename":"brb20hours","password":""}}' -H 'Content-Type: application/json'
gen_addresses () {
x=1
while [ $x -le 300 ]
do
curl -s -o /dev/null http://localhost:18092/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"create_account","params":{"label":"account '"${x}"'"}}' -H 'Content-Type: application/json'
curl -s -o /dev/null http://localhost:18092/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"create_address","params":{"account_index":'"${x}"',"label":"new-subs","count":5000}}' -H 'Content-Type: application/json'
((x+=1))
@plowsof
plowsof / exit_on_sync.sh
Last active December 8, 2022 07:04
user chillbruh requests starting monerod - exiting when synced
#!/bin/bash
monerod --detach
while [[ "$status" != "true" ]]; do
REQ=$(curl "http://localhost:18081/json_rpc" -d '{"jsonrpc":"2.0","id":"0","method":"get_info"}' -H 'Content-Type: application/json')
status=$(echo $REQ | jq '.result.synchronized')
sleep 120
done
monerod exit
@plowsof
plowsof / parse_make_uri.py
Created December 7, 2022 02:24
create a uri, then parse the uri and compare the response to the original
from monerorpc.authproxy import AuthServiceProxy, JSONRPCException
import uuid
rpc_url = "http://127.0.0.1:18082/json_rpc"
rpc_connection = AuthServiceProxy(service_url=rpc_url)
payments = []
for x in range(500):
@plowsof
plowsof / info.md
Created November 16, 2022 21:06
Request: tryptych funds to Bp++?
@plowsof
plowsof / get_output_number.py
Created November 3, 2022 23:20
get number of outputs the wrong way
import requests
import json
import pprint
from monerorpc.authproxy import AuthServiceProxy, JSONRPCException
import time
rpc_url = "http://127.0.0.1:18082/json_rpc"
rpc_connection = AuthServiceProxy(service_url=rpc_url)
offset = 100
@plowsof
plowsof / p2pool_hashes.py
Last active November 1, 2022 12:18
verify p2pool hashes
import requests
import pprint as pp
import os
import subprocess
import sys
from urllib.request import urlretrieve
#for git --reset hard origin/master
hard_reset_remote = "origin"
#for pushing