> ## Documentation Index
> Fetch the complete documentation index at: https://custodydocs-zh.chainup.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Co-Signer交易签名

Co-Signer为交易提供更安全的双重验证功能。

除Co-Signer回调机制外，客户可以在发起交易时，同时传入sign字段，Co-Signer将额外验证sign是否合法。

#### 签名规则

* 参数按照`k1=v1&k2=v2`拼接方式签名，k按照`ASCII升序`排序；参数为空不参与签名

* 参与签名的数字`不得以数字0为结尾`，如1.0001000，请使用1.0001参与签名

* 参数拼接后，转小写然后使用MD5加密，如加密前参数为`address_to=0x5edc9177997bf6b4db559a5c184051858b3b3704&amount=1.0001`，MD5加密后为`c10c47a46b616526e739985ce1c7f15d`

* 对MD5数据使用`SHA256算法`进行RSA签名，然后进行`BASE64编码`，得到最终的签名数据

#### 验证签名密钥

![](https://mintcdn.com/custody-zh/qHezw-OC45ZTBFPH/images/custody-guide/co_signer_show_rsa.png?fit=max\&auto=format\&n=qHezw-OC45ZTBFPH\&q=85\&s=da0822c66ebc4e5b54e82a54088ac74e)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.