Signing steps
<p><strong>Signing steps:</strong></p>
<ul>
<li>
<p>Take the deposit application as an example to explain</p>
</li>
<li>
<p>Assuming that the two parties agree in advance that secretKey=b33d9fa8-ba71-474e-96bc-4217e4b989d6</p>
</li>
<li>Assuming that the parameters of the application for deposit are as follows
businessId=08d8f4d8-fcbb-4d69-84fe-6b9448063d0d&outOrderNo=202103200101010011&outUserId=userId1&coin=TRC20_USDT&amount=100&orderType=1&productname=product&exData=&timeStamp=1624438173
<ol>
<li>Sort by parameter field name, sort the result with & connection, and the string after sorting is as follows:
amount=100&businessId=08d9526c-5070-41f1-8b5f-7379277bb16b&coin=TRC20_USDT&exData=exData&orderType=1&outOrderNo=202103200101010011&productName=product&timeStamp=1624438173</li>
<li>After sorting, add &secretKey=b33d9fa8-ba71-474e-96bc-4217e4b989d6 at the end of the string, forming the final string to be signed for calculation as follows:
amount=100&businessId=08d9526c-5070-41f1-8b5f-7379277bb16b&coin=TRC20_USDT&exData=exData&orderType=1&outOrderNo=202103200101010011&productName=product&timeStamp=1624438173&secretKey=b33d9fa8-ba71-474e-96bc-4217e4b989d6</li>
<li>Use the "string for signature calculation" generated in the previous step to generate a digital signature, and the signature gets the following results:
b2c4a67679e251217db2be0912728893</li>
<li>Add the generated digital signature to the request, the parameter is "mac". Finally, the API request sent to the server should be:
<pre><code>http://xxx.xxx.xxx/api/v3/Payment?businessId=08d9526c-5070-41f1-8b5f-7379277bb16b&outOrderNo=202103200101010011&outUserId=userId1&coin=TRC20_USDT&amount=100&orderType=1&productname=product&exData=exData&timeStamp=1624438173&mac=b2c4a67679e251217db2be0912728893</code></pre></li>
</ol></li>
</ul>