Dmitry Petukhov (@dmpsim) profile picture
Joined October 2018
Photo by Dmitry Petukhov (@dmpsim)Photo by Dmitry Petukhov (@dmpsim)Photo by Dmitry Petukhov (@dmpsim)Photo by Dmitry Petukhov (@dmpsim)Photo by Dmitry Petukhov (@dmpsim)Photo by Dmitry Petukhov (@dmpsim)Photo by Dmitry Petukhov (@dmpsim)Photo by Dmitry Petukhov (@dmpsim)Photo by Dmitry Petukhov (@dmpsim)
B'SST v0.1.4 is released. The only notable change is change of license. It is now licensed under AGPLv3: github.com/dgpv/bsst/blob/ma…
166
B'SST v0.1.3 is released. Improved display of execution paths, and a bunch of bugfixes Release notes: github.com/dgpv/bsst/blob/ma…
1
1
261
If you use B'SST to analyze Bitcoin or Elements scripts, please look at this proposed change to how execution paths are to be displayed in the report: github.com/dgpv/bsst/pull/33 I think this will make it easier to comprehend the report, but I want external opinion before merging
1
2
270
CScript.witness_version() in python-bitcointx has incorrect behavior for witness versions > 0. I will create new release just for this fix. If your code relied on incorrect behavior (0x51 instead of 1 as witness version for taproot), please comment here: github.com/Simplexum/python-…
115
Regarding the name B'SST for bitcoin-like script symbolic tracer, this name is a reference to Bastet, an ancient egyptian cat-goddess - b'sst is one of her most ancient names. I felt like naming this tool with some twist, and this seemed to be as good twist as any other :-)
1
202
regarding the pronunciation of B'SST, I myself pronounce it simply as abbreviation: bee-ess-ess-tee. It was amusing to learn that it can be pronounced as "bzzt" :-)
89
B'SST v0.1.1 is released: github.com/dgpv/bsst/blob/ma… I think 3 bugfixes, 2 detection improvements, and a small change in report format (data refs now start with &) is enough to justify a new version, so there it is.
2
131
B'SST: Bitcoin-like Script Symbolic Tracer is released: lists.linuxfoundation.org/pi… It analyses Bitcoin and Elements scripts by symbolically executing all possible execution paths, and tracking constraints that opcodes impose on data. It then outputs a report based on this analysis
8
22
5
77
70,503
Is there a bitcoin library (in any language) that has convenient and robust abstraction for construction of taproot script trees? Test framework in Core has taproot_construct() which takes simple recursive structure - OK for test framework, probably too simplistic for the library
1
I want to find a good abstraction for this, to use in python-bitcointx, so that there won't be a need to change the API later
It has a talk on "Verifying Payment Channels with TLA+", which is about Lighting network. "...we model the Lightning Network’s protocol in TLA+", "... Building a model of the underlying blockchain and transactions that models hashes and signature". Promises to be very interesting
Excited to share the schedule/program of #tlaplus conf 2021: conf.tlapl.us/2021/
1
4
I've tried my hand at modelling contracts on bitcoin - modelled a Succinct Atomic Swap contract in TLA+ (github.com/dgpv/SASwap_TLApl…), but this thing promises to be much more thorough than that
1
python-bitcointx v1.1.2 released: github.com/Simplexum/python-… -- not many changes: path templates updated to adhere to BIP88, signing code now grinds for low-R, bail on uncompressed pubkeys in some functions by default, honor 'chain' option in rpc config - that's all.
2
"naming-as-codifying a very sensitive process. ...given a name, that name becomes how people introduce the concept. Unlike codebases, you can’t change codification. A misleading name will be confusing people for the rest of your life. stakes for finding good names is much higher"
"There are only two hard things in Computer Science: cache invalidation and naming things." Except one of these isn't a hard thing, it's actually a collection of hard things. I give you: "Naming Things" is a Poor Name for Naming Things. buttondown.email/hillelwayne…
4
Out of curiosity, I've sketched a contract for trustless "even-odd" bet on Bitcoin using pre-signed transactions. I suspect that contract like this was already described somewhere on bitcointalk long ago, but it was fun to figure it out myself: gist.github.com/dgpv/54024e8…
2
If anyone knows another construction for such bet on Bitcoin, I would appreciate a pointer/link to the description, so I could compare my approach to the others
BIP322 requires to validate standardness flags, but there's no canonical interface to do so: libbitcoinconsensus explicitly allows only consensus flags. github.com/bitcoin/bips/pull… How people deal with this? Own interpeter? Pucking code from Core? libbitcoin-consensus ? Core RPC ?
1
As creditor can enforce liquidation, debtor can enforce "repudiation" using the same mechanism - if LTV is too low (say, 25%), debtor may take back collateral by only paying the body of the loan, without interest. b/w liquidation/repudiation Alice and Bob can settle interactively
1
3
Liquidation would also be 'single outcome' event - no way to add collateral if liquidation is initiated. Participants will need to settle interactively between the liquidation and repudiation thresholds by moving to the new contract with added collateral / reduced loan body etc.
1
A sketch of the loan contract that uses an oracle to trigger price-dependent liquidation, but protects from malicious oracle via leveraged challenge: gist.github.com/dgpv/2bf22a5…
4
1
8
It is likely that asset-price bet contract that I described in gist.github.com/dgpv/6ec715a… can also be made into this hybrid oracle+leverage-protection construction.