generateSignature
Used to generate an ECDSA digital signature for the specified text message. The signing process is based on the secp256k1 elliptic curve and uses the MarsApp account address (BTC address) obtained from the getAccount method.
Request Parameters
Parameter Name
Type
Required
Description
message
String
Yes
Original message to be signed.
Response Parameters
Parameter Name
Type
Description
result
String
Signature result (Base64 encoded).
Call Example
let payload = {
message: "Hello RelayApp"
};
const response = await relayx.generateSignature(payload);
if (response.code === 200) {
console.log("Signature:", response.result);
}Last updated