Skip to main content
Version: 1.2.1

Ecdsa - Sign a message using a key share

POST 

/ecdsa/sign

Signs a message using the given key_id. The message is signed using the secret share generated in the /ecdsa/keygen operation. The signature is then returned to the caller. The message must be hashed when signing using the relevant hash (i.e. sha256 for Bitcoin or keccak256 for EVM).

Request

Header Parameters

    AUTHORIZATION stringrequired

    The AUTHORIZATION header must be set to the API Key of the user. The API Key is returned when a new user is created using the /admin/create-user endpoint.

Body

required

    derivation_path uint32[]
    extra_data string

    Hex encoded extra data to be passed to the Rule Server. This data should be used to pass any additional information / external state to the Rule Server that is required to properly validate the signing request.

    hash_algo HashOptionsrequired

    Possible values: [sha256, keccak256, sha256d, none]

    When the none hash algorithm is selected, no hashing is performed, and the message is used as-is. Therefore, the message must be 32 bytes long formatted as a hex string. The hash_algo field is case-insensitive.

    key_id KeyIdrequired
    msg stringrequired

    The message to be signed must be hex-encoded.

    relay_address

    object

    An Optional relay address to use only for this specific MPC operation. If not provided, the default relay address will be used. The relay address should be in the format of host:port.

    anyOf

    string

    room_uuid stringrequired

Responses

Schema

    der stringrequired
    r stringrequired
    s stringrequired
    v uint8required
Loading...