Hello!
Me and my friend have recently started learning the basics of bitcoin transactions following various tutorials such as these:
https://medium.com/deqode/bitcoin-transactions-made-easy-c3aa838545d4,
https://www.javatips.net/api/bitseal-master/src/org/bitseal/crypt/SigProcessor.javaWe were looking at BitcoinJ library, but found its code to be cumbersome and unnecessarily confusing, thus deciding to make our own code utilising simpler libraries.
So far we've managed to generate a raw hexcode of a transaction which is able to be decoded by the api, but unable to be pushed to the blockchain:
0100000001f0d7ada8c89b1700b8a63024ba3a7da3e591fe48098cc566575ef19ea691eddb01000
0008b4830450221008c85c45905cb0d222dd2b802209b1af39ea59aec08cd04899a837222639e12
95022030d7e67a596a643904f552389814a6ca47cee4ad4c186dce6b945ca3f8b450a60141045b0
b7d4cd97db3f2bbb79460523dc5e8200fd0b3a614803f08fe87abbcec240aac43fa4aaf5c210a78
0f4e3eb6237379595ae92ad2ad7324901c7bbb8ef33136ffffffff0150c30000000000001976a91
4344a0f48ca150ec2b903817660b9b68b13a6702688ac00000000
Here is the data of transaction we want to make
Our private key (WIF) is 92hTi6bHXN6twTModrsFjVnJHE1x6izMKiYi957d7WhPLghaenj
Our public key is 045b0b7d4cd97db3f2bbb79460523dc5e8200fd0b3a614803f08fe87abbcec240aac43fa4aaf5c2
10a780f4e3eb6237379595ae92ad2ad7324901c7bbb8ef33136
Our public address is mwCBgxjH8EsGj2KQ5HNRAZMozhe3x8kwBU
Previous transaction is dbed91a69ef15e5766c58c0948fe91e5a37d3aba2430a6b800179bc8a8add7f0
Transaction sum is 0.0005
Destination address is mkHS9ne12qx9pS9VojpwU5xtRd4T7X7ZUt
We suspect that the problem arises during digital singing process. We use java.security and bouncycastle "SHA256WithECDDSA" for signing.
Any help would be appreciated and if necessary we can provide our code.
Thank you in advance!