- Adds a new function for the user to sign messages using the current active wallet.
- New collapsable form added to Configure.js, which then passes BCH, fundingWif and message to sign to useBCH.js, which subsequently calls BCH.BitcoinCash.signMessageWithPrivKey(pk, message)
- Issue: as discussed with @bytesofman, getting a strange error from the test suite complaining of unhandled exceptions within async function, but there are clearly try catch blocks in the added code.
The other potential cause may be down to changing:
const Configure = () =>
into
const Configure = ({ jestBCH, passLoadingStatus }) =>
which was to allow me to then set BCH as follows
const BCH = jestBCH ? jestBCH : getBCH();
and then pass BCH from Configure.js to useBCH.js to use when calling
BCH.BitcoinCash.signMessageWithPrivKey(pk, message)