Skip to content
This repository has been archived by the owner on May 13, 2022. It is now read-only.

Create tests for pybitcointools transaction deserializing routines #468

Closed
chris-belcher opened this issue Mar 16, 2016 · 3 comments
Closed

Comments

@chris-belcher
Copy link
Collaborator

We all know pybitcointools is a bit rubbish #61 and in hindsight we never should of used it. But it's not easy to move away and we've already engulfed that library to a large extent.

At some point we'll move to using libsecp256k1 instead of Vitalik's pure python ECC routines. We already have a testing suite for the BIP32 code.
The only notable part left that we use is the transaction deserializing routines. They are quite important, if they have bugs then makers could be tricked into signing transactions that they don't intend to sign.

Therefore we should write tests for those routines. Tagged as medium difficulty because even though the tests are easy to write, coming up with good tests is not obvious.

@AdamISZ
Copy link
Member

AdamISZ commented Mar 16, 2016

I was thinking about this (idly) last week and started wondering if there are test suites in Bitcoin itself which we could reuse. I agree it's a non-trivial exercise to come up with good test cases.

@AdamISZ
Copy link
Member

AdamISZ commented Apr 7, 2016

This has been addressed by #476 #477 #482 #490.

More can be done of course. But close if you like.

@AdamISZ
Copy link
Member

AdamISZ commented Sep 15, 2016

Closing, we're long past the pybitcointools ECC routines now, and we have deserialization tests although we could have better ones for sure.

@AdamISZ AdamISZ closed this as completed Sep 15, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants