Skip to content

Instantly share code, notes, and snippets.

View taariq's full-sized avatar

Taariq Lewis taariq

View GitHub Profile
@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.

@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
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