Error when sending native assets from customized SPV

+2 votes
I've customized the android BitcoinWallet to support native assets for Multichain. When I send the native asset the following error occurs. I'm very sure that my scripts are properly signed. Need your advice and lead to help me sort this issue.

 

2018-10-02 11:27:35.669 3058-3510/de.schildbach.wallet_test E/Peer: [NioClientManager] [52.220.24.213]:4799 /MultiChain:0.1.0.11/: Received Reject: tx bd8233625bd185627a475e5bd892723047dd4d1a991f4351a4c0dd88a2ecf9c0 for reason 'ConnectInputs failed: mandatory-script-verify-flag-failed (Script failed an OP_CHECKSIGVERIFY operation)' (16)
asked Oct 1, 2018 by jeshocarmel
Wow this is really cool. Is your code to achieve native assets on a mobile wallet on github for perusal?

1 Answer

+2 votes

May I suggest that you create and sign the same transaction in MultiChain (using createrawtransaction and signrawtransaction passing in the private key), and see the difference between the two signatures?

The issue may well be related to "non-canonical DER signatures" which Bitcoin Core became stricter about a few years back (and this was inherited by MultiChain). Lots of explanations are available online, for example:

https://eklitzke.org/bitcoin-transaction-malleability

answered Oct 2, 2018 by MultiChain
solved it. It was an error on my code with bitcoinj. Thanks
...