Author

Topic: BIP70 : Test vectors ? (Read 1098 times)

hero member
Activity: 714
Merit: 662
May 27, 2014, 10:58:39 AM
#8
holy cow Gavin host a running paymentrequest generator at https://bitcoincore.org/~gavin/createpaymentrequest.php,
Lucky enough to came accross it thanks to https://bitcoinj.github.io/payment-protocol#user-interface-considerations
Would have saved me so much time if I knew Sad
hero member
Activity: 714
Merit: 662
May 26, 2014, 05:10:16 PM
#7
Sadly, between the protobuf package not existing anymore (I guess protobuf-compiler is the new name), and the make that does not work, I can't try out. (pushd, popd command not found)
Not sure it is a big problem, but it is definitively not for a linux illiterate like me, I'll run an eclipse and the BitcoinJ implementation instead.
legendary
Activity: 1526
Merit: 1134
May 26, 2014, 01:13:50 PM
#6
We should add a link to Gavin's tool in the new developer guide I think. And yes, test vectors are badly needed!
hero member
Activity: 714
Merit: 662
May 25, 2014, 01:15:25 PM
#5
This suck Sad
I would prefer having less, or no explanation page for a BIP but some rudimentary test vectors, than a novel without one. Sad

Feel free to create some; code here: https://github.com/gavinandresen/paymentrequest

Gavin, I will, thanks to point out your utils, I will use that to make some test messages.
Will update the BIP once I implemented a compliant port on NBitcoin.

Maybe you can include your tool as reference in the BIP, this would help implementers.
legendary
Activity: 1652
Merit: 2301
Chief Scientist
May 25, 2014, 09:55:06 AM
#4
This suck Sad
I would prefer having less, or no explanation page for a BIP but some rudimentary test vectors, than a novel without one. Sad

Feel free to create some; code here: https://github.com/gavinandresen/paymentrequest
hero member
Activity: 714
Merit: 662
May 24, 2014, 10:28:41 AM
#3
This suck Sad
I would prefer having less, or no explanation page for a BIP but some rudimentary test vectors, than a novel without one. Sad
jr. member
Activity: 56
Merit: 1
May 24, 2014, 10:24:13 AM
#2
I don't think there are any test vectors. I think the best you can do is compare against bitcoinj and modify bitcoinj's tests to test your implementation.
hero member
Activity: 714
Merit: 662
May 24, 2014, 05:53:52 AM
#1
I'm going to implement BIP70 in NBitcoin, the big problem is that I see nowhere any tests vector to ensure I process correctly the payments messages.
The bitcoin core source does not have any tests about that, and I see no reference implementation in the BIP.

Does someone know where I can find such test vectors ?
Jump to: