Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Btc view #158

Merged
merged 28 commits into from
Jul 3, 2020
Merged

Btc view #158

merged 28 commits into from
Jul 3, 2020

Conversation

prestwich
Copy link
Member

@prestwich prestwich commented May 25, 2020

Tracking PR for solidity@4.0.0 updates.

  • First draft of BTCView
  • BTCView Tests
  • First draft of SPVView (TODO: better name)
  • SPVView Tests
  • Update Sighash and signature utils to use BTCView instead of BTCUtils
  • Sig tests
  • Remove BTCUtils + Delegates

prestwich and others added 23 commits June 27, 2020 14:19
* added honey bunches of docs

* fixed doc errors

* fixed stuff

* removed todo, edited some docs
* first test

* more tests, cleaned up BTCUtils.test.js

* wrong function

* added more tests

* cleaned up file, added more tests

* feature: hex encoded errors for typedmemview

* fixed opReturnPayload test, added scriptPubkey function in ViewBTCtest.sol

* tests: indexVin and indexVout

- fix indexVin & indexVout
- fix tryAsVin & tryAsVout
- fancy hex errors in typedmemview
- add tests for indexing vin/vout
- remove vectors for non-minimal varints in vin/vout
- misc cleanup to truffle config
- linting
- type to uint conversion comments

* refactor: improve/fix nibbleHex

* finished nasty verifyHash256Merkle function test

* tests: Tests and bugfixes for ViewSPV

* added notes

* moved type conversion and validation to ViewSPVTest.sol

* accidentally reverted change

* added more type assertions

* notes on tryAsVout test

* lint: solidity assembly

* feature: error message for non-minimal varints

* added new errors for Non-minimal varints

* refactor: improve non-minimal varint error

* bug: don't be so lazy

* fixed test cases that deal with non-minimal var ints

* updated error tests, needs cleaned up

* pushing latest

* fixed bugs

* finished payload, work and workHash tests

* separated out error cases

* Organized ViewBTC tests

* updated test descriptions

* bug: fix payload p2sh path

* added test case to extractHash

* chore: improved comments for typedmemview

* chore: remove duplicate test vector

Co-authored-by: James Prestwich <james@prestwi.ch>
* added some checkWork tests

* removed only

* lint error
@prestwich prestwich mentioned this pull request Jun 27, 2020
@prestwich prestwich marked this pull request as ready for review June 27, 2020 22:28
@prestwich
Copy link
Member Author

@ErinHales this is ready for review

@prestwich prestwich merged commit 0cb765c into master Jul 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants