1
1
Are there any special tests (test data) I should run against my code if I've written a Base58Checked encoder/decoder?
1
1
Are there any special tests (test data) I should run against my code if I've written a Base58Checked encoder/decoder?
1
I'm using BigInteger in .NET so these tests are unique to this scenario but may be adapted to Java or other languages.
The tests I've found helpful is when translating to or from hexadecimal at any intermediate step make sure the data is correct when:
Often times this may cause two's compliment errors depending on the implementation of BigInteger that is being used.
I'll run my own version of vanity gen to generate addresses that have these errors and will post them here.
Hi makerofthings7, I think this question is on-topic, but you need to clarify what specifically the test data is supposed to do (validate your implementation? performance test it? etc.). Otherwise there aren't any real concrete answers (what this site is designed for), only opinions (which this site is not designed for). – eMansipater – 2013-02-08T05:58:00.470