Step 2 – Implementing transaction-payload encoding