Skip to content

Crypto-Conditions#538

Merged
jl777 merged 92 commits intojl777:devfrom
ssadler:cryptoconditions
Apr 8, 2018
Merged

Crypto-Conditions#538
jl777 merged 92 commits intojl777:devfrom
ssadler:cryptoconditions

Conversation

@ssadler
Copy link
Copy Markdown

@ssadler ssadler commented Mar 17, 2018

What's left to do before merge?

Add to this list:

  • Check for secp256k1 malleability in CC
  • Decide how to handle non determinism in CC threshold fulfillments (also malleability)
  • Dont use replacement pool if CC is disabled
  • Revisit reorg behaviour w/r/t replacementPool (second replacementWindow?)
  • Document possible attack vectors involving CC or Replacement pool (arent any!)

Enabling

Currently, Crypto-Conditions is enabled via a command line flag. It probably makes sense to enable to by default for some chains after a certain block height.

What types of Crypto-Condition are acceptable?

I'm guessing we only want:

  • Transactions that have signatures (due to malleability potential)
  • Secp256k1, Preimage, Threshold, and Eval types, ie no Ed25519, and no Prefix.

Also guessing that we'll accept any fulfillment that fits into a ~500 byte opcode. It's not a huge amount of space.

Documentation

I want to point out that "src/cryptoconditions" is actually tracking the komodo branch of libscott/libcryptoconditions, but I'm not using a submodule anymore, all files are committed. In practice you can run git init inside the subfolder and manage that subtree, and the .git folder will be ignored in by parent (komodo). Is there anywhere that it makes sense to document this?

jl777 and others added 30 commits April 16, 2017 08:31
for static linking
1. tweaks in control file (name, url, git, etc)
2. package script
3. changelog
hotfix for excessive fees
spelling, grammar etc.
Hot fix for btc $4294 price overflow, no need to update if you dont use paxprice
paxprice fixes, no need to update if you dont run pax fiat assetchains
change download link from z.cash
change download link from z.cash. no need to update if you already have built komodod
universal cross platform source tree
This reverts commit a487e5a, reversing
changes made to 6be96b7.
fix the build issue from missing zcash repo file
…ecause that disables shared linking. cryptoconditions must not include config.h because that includes conflicting variables.
@ssadler
Copy link
Copy Markdown
Author

ssadler commented Mar 28, 2018

Updated to latest jl777/dev, including zcash upgrade

@ssadler
Copy link
Copy Markdown
Author

ssadler commented Mar 28, 2018

Also removed replacementpool entirely.

@ssadler
Copy link
Copy Markdown
Author

ssadler commented Mar 30, 2018

Added cross chain payout functions, not tested yet

…as requiring a signature and limiting types * different SIGHASH types for CC
@ssadler ssadler force-pushed the cryptoconditions branch from c099b0e to 563581a Compare April 1, 2018 02:20
@ssadler
Copy link
Copy Markdown
Author

ssadler commented Apr 1, 2018

Some extra validations for malleability and supported CC types

@ssadler ssadler force-pushed the cryptoconditions branch from 9bba38c to 561f3e1 Compare April 5, 2018 08:06
@ssadler ssadler changed the title Crypto-Conditions (dont merge yet) Crypto-Conditions Apr 6, 2018
@ssadler ssadler force-pushed the cryptoconditions branch from 1742d9f to e36af93 Compare April 8, 2018 00:46
@jl777 jl777 merged commit 53db654 into jl777:dev Apr 8, 2018
dimxy pushed a commit to dimxy/komodo that referenced this pull request Jul 12, 2022
miketout pushed a commit to miketout/VerusCoin that referenced this pull request Nov 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants