Plaintext signing API is now live! This API allows you to sign a piece of text using a Palisade wallet. You can use this for the following use-cases and beyond:
Plaintext signing API is an asynchronous API call, similar to transactions that takes a payload containing the text to sign and responds with the standard transaction object.
The key properties of the response are as follows:
signingHash: The hash that was signed.signature: The non-canonical signature. This signature uses some random parameters and hence can be different for same payload.canonicalSignature: The blockchain-compatible canonical signature that ensures the signature parameters are on the right side of the curve.action: indicates the action that is set to Sign when the mode is plaintext sign.request_data: The original request payload, unprefixed, that was requested to sign.prefixed_request_data: The original request payload, with blockchain-specific prefix.hashed_prefixed_request_data: Hash of the prefixed request data.hashing_algorithm: The hashing algorithm used.Request
POST <https://api.sandbox.palisade.co/v2/vaults/019440ac-bc74-7cc3-aeed-1eb503ec3a65/wallets/019440ac-bcff-7c41-ab78-f2d656921f94/transactions/sign-plaintext>
{
"message": "Hello world"
}
Response
{
...
"attributes": {
"action": "Sign",
"request_data": "Hello world",
"prefixed_request_data": "\\u0019XRP Ledger Signed Message:\\n11Hello world",
"hashed_prefixed_request_data": "b5f417c40cd8713279684a634d4c251f0adcd0666a2171eeccee3fa94c83cacd",
"hashing_algorithm": "keccak256"
},
...
"signingHash": "b5f417c40cd8713279684a634d4c251f0adcd0666a2171eeccee3fa94c83cacd",
"signature": "3045022100ede31b45a9e9154d9b60d8a3e3851b5c3d5dbcfb14f940ae6e522ab742537b540220228155428cd725653a9c525395acf97163c9628cc2fb11345217604d19d18a57",
"canonicalSignature": "3045022100ede31b45a9e9154d9b60d8a3e3851b5c3d5dbcfb14f940ae6e522ab742537b540220228155428cd725653a9c525395acf97163c9628cc2fb11345217604d19d18a57",
...
}