Proven library for signing a multi chain transaction

+1 vote
Thanks for that......makes sense.  On a related topic, have you tested any of the bitcoin libraries to sign a multi chain raw transaction.  We are currently using bitcoin.js as we use that for BTC, and so far we just haven't been able to get it to successfully sign a transaction??

If you have any examples using external libraries, that would be very helpful!!




related to an answer for: Issue locking unspent Output
asked Jul 10, 2017 by Marty

2 Answers

0 votes

We don't have a worked example of this yet, but we know other people have done it.

In general with any library the two main things to look out for are:

  1. Pass address and private key parameters to the library in a format it expects. To make life easy to start with, you can use bitcoin-compatible addresses and private keys in MultiChain using the blockchain parameters given on this page:
  2. Step through the library code for signing transactions and bypass any checks it may contain regarding the content of transaction outputs. MultiChain uses both OP_DROP and OP_RETURN metadata extensively to extend the bitcoin protocol, in ways that don't appear in standard bitcoin transactions.

Hope this helps and we'd love to hear how you get on.

answered Jul 10, 2017 by MultiChain
0 votes
MultiChain 1.0.1 released today include a cold node/wallet that can be used for signing transactions. More information here:
answered Sep 13, 2017 by MultiChain