Sign a message with a Sui keypair

Changed on

Signs a message using the Ed25519 keypair for the given login identifier

post/sign-message

Request

  • Base URL: https://dhctq4vocgpmdbp5so7jfql26q0ubzms.lambda-url.us-east-1.on.aws
  • URL: https://dhctq4vocgpmdbp5so7jfql26q0ubzms.lambda-url.us-east-1.on.aws/sign-message
  • Auth: none declared

Request body

login_typestring required

Type of login (e.g., google, github, email)

loginstring required

Login identifier (e.g., email address, username)

messageinteger[] required

Message to sign as a vector of bytes (u8)

Example request

{
  "login_type": "email",
  "login": "user@example.com",
  "message": [
    72,
    101,
    108,
    108,
    111
  ]
}

Response

Successfully signed message

signatureinteger[] required

Signed message as a vector of bytes (u8) in Sui signature format

addressstring required

Sui address of the signer

Example response

{
  "signature": [
    0,
    156,
    234,
    123,
    45,
    67,
    89,
    101,
    112,
    134,
    156,
    178,
    190,
    201,
    223,
    234
  ],
  "address": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef"
}

Changes