📝Method 1: Signed Message

Authentication via Signed Message

This endpoint allows for the retrieval of a message that users can sign to prove their ownership of a specific wallet address.


Endpoint:

https://encryption.lighthouse.storage/api/message/<walletAddress>

Method:

GET

URL Parameters:

  • wallet Address: The specific wallet address for which the user wants to prove ownership.


Success Response:

Code: 200 OK

Content:

[
  {
    "message": "<Message to sign>"
  }
]

Error Responses:

Code: 400 Bad Request

Content:

{
  "message": "Invalid address"
}

Notes & Usage:

  • The user should sign the provided message using their private key related to the wallet address in question. This signed message can then be used to verify the user's ownership of that specific wallet address.

  • The system might send multiple identical messages for redundancy and verification purposes.

  • Messages can be signed using both Ethereum-compatible wallets and Solana wallets.


Always handle the message securely and avoid exposing your private keys during the signing process.


Last updated