Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

100
Views
Solana check address ownership

is there in solana web3js any way how to check address ownership?

For example in ETH I sign a message with PK and then recover the address with message and signiture. If the address which I am checking equals to the address from recover function I know that the person who sign the message owns the specific address.

I need to make same functionality in solana.

Thank you for your help.

import Accounts from "web3-eth-accounts";


/**
 * Check address ownership by signed message
 *
 * @param {string} address address to check ownership
 * @param {string} message message signed by address private key
 * @param {string} sign message sign
 * @returns true if message was signed with this address private key, false otherwise
 */
export const checkAddressOwnership = (address, message, sign) => {
  const accounts = new Accounts();
  const recoveredAddress = accounts.recover(message, sign);
  return address.toLowerCase() === recoveredAddress.toLowerCase();
};

/**
 * Sign message with address private key
 *
 * @param {string} message message to sign
 * @param {string} privateKey private key
 * @returns signed message
 */
export const signMessage = (message, privateKey) => {
  const accounts = new Accounts();
  return accounts.sign(message, privateKey);
};

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Solana uses the Ed25519 curve for its crypto, which, based on a quick search, is not guaranteed to have this public key recovery property. This is the best explanation I've been able to find: https://crypto.stackexchange.com/questions/9936/what-signature-schemes-allow-recovering-the-public-key-from-a-signature#9939

Perhaps a cryptography expert can give more information!

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!