💾120K PRL DEV BOUNTY💾
I need some help to get something programmed, reward is 120k PRL which has a current market value of ~$4.5k. Payment will be made from the devfund to whoever produces the best solution first. I might split the reward between multiple people at my discretion. If it turns out that there is a ready to go solution somewhere else, then the reward is 10k PRL for the one who finds it.
I need the function prepareTransfers() from the IOTA JS lib ported to PHP:
https://github.com/iotaledger/iota.lib.js/#preparetransfersI need a PHP function that accepts the same input variables of:
-1. seed key
-2. address of recipient
-3. message - the tryte-encoded transaction payload message
-4. tag - tryte-encode tag for the transaction
And produces the same raw tryte transaction output. Such output should be accepted as input to AttachToTangle() without failure.
Since the value variable will always be 0, there is no need to deal with the value based transfer functions. Therefore also not needed is the inputs variable which lists the inputs to fund the transfer.
The javascript version of the function can be found here:
https://github.com/iotaledger/iota.lib.js/blob/1b5f072b727cb77419ccfcfd2b0fbea0132794ca/lib/api/api.js#L982A good place to start would be to run data through the function and reverse engineer the output.
I will not accept an answer of running node.js or Mozilla Rhino, those are measures of last resort only.