Skip to content

Instantly share code, notes, and snippets.

View taariq's full-sized avatar

Taariq Lewis taariq

View GitHub Profile
Orb Python
Optimization terminated successfully.
Current function value: 4191.796170
Iterations 14
INFO:q2Logger: Logit Regression Results
==============================================================================
Dep. Variable: offer No. Observations: 380583
Model: Logit Df Residuals: 380567
Method: MLE Df Model: 15
Date: Tue, 27 Aug 2013 Pseudo R-squ.: 0.1061
@taariq
taariq / brew_doctor_cg_miner_error
Last active December 25, 2015 11:09
cgimer fails on autreconf
taariqlewis@Playa-Den-Bossa-770~: brew doctor
Your system is ready to brew.
taariqlewis@Playa-Den-Bossa-770~: brew --config
HOMEBREW_VERSION: 0.9.5
ORIGIN: https://github.com/mxcl/homebrew.git
HEAD: 793ee9d7714a336da3c37b4b24272101f854a86c
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: 8-core 64-bit sandybridge
@taariq
taariq / Discreet_log_adaptor_sigs.md
Last active May 22, 2018 18:59
Mimblewimble Discreet Log Contracts with Adaptor Signatures by Ruben Somsen

Hi all,

Tadge Dryja's Discreet Log Contracts (DLC) can be combined with Andrew Poelstra's Adaptor Signatures (AS). I'm simply describing the combination of the two existing concepts without any fundamental changes, but I thought it was worth writing out explicitly since I haven't seen any write-up. Hopefully it doesn't contain any errors.

Starting from Schnorr signature [R, s].

In DLC, the oracle will reveal one of multiple possible s values as part of signing the outcome of an event. This s is essentially a private key for which the public key S can be calculated ahead of time (because R is committed to in advance).

In AS, instead of just R (essentially a public key), you add a second public key P of which the payer wishes to obtain the private key p from the payee. Only by revealing p can the payee make the signature valid, and thus receive the payment.

Keybase proof

I hereby claim:

  • I am taariq on github.
  • I am taariq (https://keybase.io/taariq) on keybase.
  • I have a public key ASBJhkiayICkFWpFYXIL__Zm4Q96FDfP0WiJSRjYsISEFAo

To claim this, I am signing this object:

@taariq
taariq / gist:43084d47338453a2f0588aeb43ea7608
Created October 3, 2022 21:43
Palomad restart with downgrade pigeon and upgraded genesis at blockheight 532371
Oct 03 21:41:18 vultr systemd[1]: Stopped Paloma Blockchain.
Oct 03 21:41:18 vultr systemd[1]: Started Paloma Blockchain.
Oct 03 21:41:18 vultr cosmovisor[435012]: 9:41PM INF running app args=["start"] module=cosmovisor path=/home/ubuntu/.paloma/cosmovisor/upgrades/v0.9.0/bin/palomad
Oct 03 21:41:18 vultr cosmovisor[435024]: {"level":"info","time":"2022-10-03T21:41:18Z","message":"starting node with ABCI Tendermint in-process"}
Oct 03 21:41:18 vultr cosmovisor[435024]: {"level":"info","module":"proxy","impl":"multiAppConn","time":"2022-10-03T21:41:18Z","message":"Starting multiAppConn service"}
Oct 03 21:41:18 vultr cosmovisor[435024]: {"level":"info","module":"proxy","connection":"query","module":"abci-client","impl":"localClient","time":"2022-10-03T21:41:18Z","message":"Starting localClient service"}
Oct 03 21:41:18 vultr cosmovisor[435024]: {"level":"info","module":"proxy","connection":"snapshot","module":"abci-client","impl":"localClient","time":"2022-10-03T21:41:18Z","message":"Starting localClient servi
@taariq
taariq / gist:97904c9622ab0fcc9337e3f41c120920
Created October 4, 2022 18:08
October 4, 2022 Restart Failure
Oct 04 18:07:13 vultr cosmovisor[521008]: {"level":"info","module":"consensus","appHeight":0,"stateHeight":0,"storeHeight":0,"time":"2022-10-04T18:07:13Z","message":"ABCI Replay Blocks"}
Oct 04 18:07:13 vultr cosmovisor[521008]: panic: expected module account was 10000000ugrain but we got
Oct 04 18:07:13 vultr cosmovisor[521008]: goroutine 1 [running]:
Oct 04 18:07:13 vultr cosmovisor[521008]: github.com/cosmos/cosmos-sdk/x/gov.InitGenesis({{0x267d188, 0xc0001ae000}, {0x268af00, 0xc00118de40}, {{0x0, 0x0}, {0xc0001cc2e8, 0x11}, 0x81f94, {0xac92243, ...}, ...}, ...}, ...)
Oct 04 18:07:13 vultr cosmovisor[521008]: /go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.45.8/x/gov/genesis.go:52 +0x739
Oct 04 18:07:13 vultr cosmovisor[521008]: github.com/cosmos/cosmos-sdk/x/gov.AppModule.InitGenesis({{{0x268cb30, 0xc001101df0}, {0x0, 0x0, 0x0}}, {{0x266a700, 0xc00121fce0}, {0x267e148, 0xc0002227e0}, {0x7fb1b8593ef0, ...}, ...}, ...}, ...)
Oct 04 18:07:13 vultr cosmovisor[521008]: /go/pkg/mod/github.com/cosmos
@taariq
taariq / gist:ef0cb15c6767a0575271eff18ac52aec
Created October 8, 2022 00:07
ValueError: {'code': -32000, 'message': 'replacement transaction underpriced'}
python3 run.py
check EVM node connected: True
2022-10-05 04:54:11 2022-10-08 00:06:52.706997
{'0x607683d39b642ec0bf3ef90b48a0c6c344182653': 2466666990117192, '0xa4b0fdd93a1c10be92484dc067d34c627246ca57': 10548999713192823, '0x279fc7c0ebef3328d3899fe73464347a764c5f2c': 486649000393096, '0xbae919e4b272193544a9f18af1fb75f918d2b1f0': 1712340197558571, '0x63798ad4eb791a8247bb522bce38062e41f7ce26': 906035231377900, '0x7e24006be85dbef1d8bfba862cc9af9f269d35af': 2897976643666136, '0x12e3ac8ac7d8754590eacb0413c91339815cd7b5': 633215968197320}
{'gas': 102363, 'chainId': 1, 'value': 19651883744503038, 'nonce': 154, 'from': '0xF48F4e86dE6a30D75dbe3A6C67E17Cf3cbDE5768', 'maxFeePerGas': 8424676459, 'maxPriorityFeePerGas': 122317155, 'to': '0x2e89c7e795a162Acda3eAac8f4abbb321517F20F', 'data': '0xc091c435000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000007000000000000000000000000607683d
@taariq
taariq / gist:40e5d1d4cea066868966f8f37dcb5dfa
Created October 13, 2022 18:56
Daria Pigeon Jailing on Paloma on invalid request after evm messages.
Oct 12 06:29:04 vmi664253.contaboserver.net pigeon[504016]: time="2022-10-12T06:29:04+02:00" level=info msg="got balance" balance=56668482390472644 evm-address=0x12e3AC8ac7d8754590EaCb0413C91339815CD7b5 height=15729640 nearest-to-time="2022-10-12 04:27:46.57675471 +0000 UTC" queue-type-name=evm/eth-main/validators-balances
Oct 12 06:29:04 vmi664253.contaboserver.net pigeon[504016]: time="2022-10-12T06:29:04+02:00" level=info msg="got balance" balance=146951375513837190 evm-address=0xd157ADfF6beA9445f4bDB476eEcF44021F99a9Eb height=15729640 nearest-to-time="2022-10-12 04:27:46.57675471 +0000 UTC" queue-type-name=evm/eth-main/validators-balances
Oct 12 06:29:05 vmi664253.contaboserver.net pigeon[504016]: time="2022-10-12T06:29:05+02:00" level=info msg="got balance" balance=97729053966799287 evm-address=0x792E511e0F284C874F9d0401862F9b26A1aAd205 height=15729640 nearest-to-time="2022-10-12 04:27:46.57675471 +0000 UTC" queue-type-name=evm/eth-main/validators-balances
Oct 12 06:29:05 vmi664253.contaboserver.net pige
@taariq
taariq / palomad_logs
Created November 4, 2022 16:07
PalomaD Logs failing to deploy contract error
Nov 04 16:06:05 vultr cosmovisor[3691248]: {"level":"info","module":"p2p","book":"/home/ubuntu/.paloma/config/addrbook.json","size":72,"time":"2022-11-04T16:06:05Z","message":"Saving AddrBook to file"}
Nov 04 16:06:05 vultr cosmovisor[3691248]: {"level":"info","module":"pex","numDialing":0,"numInPeers":0,"numOutPeers":10,"numToDial":0,"time":"2022-11-04T16:06:05Z","message":"Ensure peers"}
Nov 04 16:06:08 vultr cosmovisor[3691248]: {"level":"info","module":"consensus","dur":4981.474753,"height":116051,"round":0,"step":1,"time":"2022-11-04T16:06:08Z","message":"Timed out"}
Nov 04 16:06:08 vultr cosmovisor[3691248]: {"level":"info","module":"consensus","proposal":{"Type":32,"height":116051,"round":0,"pol_round":-1,"block_id":{"hash":"88DBF227E11EEC4BFCF1C1DA90590360C7CE101BA117B02B0592644888F9D04B","parts":{"total":1,"hash":"126288EE0490A20DB3B1A20FCFC5C1726B53DD5967E493B14D217AF59A0202C7"}},"timestamp":"2022-11-04T16:06:08.174777138Z","signature":"IOaghTOzvuMLzVeqVtLslr7LlKmnyr8onmjjYSt7BoK9sCWAy43quxEhlRTvbpQ
@taariq
taariq / pigeond_logs
Created November 4, 2022 16:11
Pigeond-Unable_to_broadcast
Nov 04 16:04:01 vultr pigeon[3691890]: {"error":"rpc error: code = Unknown desc = rpc error: code = Unknown desc = failed to execute message; message index: 0: validator palomavaloper1k4hfe8cqdzy6j0t7sppujhrplhp8k5tgsessrf cannot be a pigeon: validator is jailed [cosmos/cosmos-sdk@v0.45.10/baseapp/baseapp.go:781] With gas wanted: '0' and gas used: '43989' : unknown request","level":"error","msg":"error while trying to keep pigeon alive","time":"2022-11-04T16:04:01Z"}
Nov 04 16:04:03 vultr pigeon[3691890]: {"error":"rpc error: code = Unknown desc = rpc error: code = Unknown desc = failed to execute message; message index: 0: validator palomavaloper1k4hfe8cqdzy6j0t7sppujhrplhp8k5tgsessrf cannot be a pigeon: validator is jailed [cosmos/cosmos-sdk@v0.45.10/baseapp/baseapp.go:781] With gas wanted: '0' and gas used: '45699' : unknown request","level":"error","message-ids":[156],"msg":"couldn't broadcast signatures and process attestation","queue-name":"evm/bnb-main/evm-turnstone-message","signed-messages":[{"id":15