Skip to main content

Overview

Allows the client to sign binary data.

HTTP request

POST /Agent/Legal/SignData

Authentication

Requires a valid JWT bearer token.

Request (JSON)

{
	"keyId": Required(Str(PKeyId)),
	"legalId": Required(Str(PLegalId)),
	"dataBase64": Required(Str(PDataBase64)),
	"keySignature": Required(Str(PKeySignature)),
	"requestSignature": Required(Str(PRequestSignature))
}

Input parameters

ParameterDescription
PKeyIdIdentity of key to use for signing the contract. It must correspond to the key used when signing the Legal Identity application that will be used to sign the contract.
PLegalIdIdentity of the Legal Identity that will be used to sign the smart contract.
PDataBase64Binary data, base64-encoded, that will be signed.
PKeySignatureCryptographic signature of the key ID, using the key password.
PRequestSignatureCryptographic signature of the requesut, using the account password.

Response (JSON)

{
	"Signature": Required(Str(PSignature))
}

Response parameters

ParameterDescription
PSignatureBase64-encoded signature.

Notes

This endpoint uses the request schema notation described in Pattern matching.