SteemX Development Update -- A Modern UI of Steemit -- Login Authentication

in hive-151113 •  2 days ago 

Home (2).png

Hello everyone!


In this post, I will share some development statistics that i have achieved in the last week. my first step is login authentication that i have achieved successfully. I have achieved it by using hive library.

Lets start by sharing the code with you guys. first step is to find the public key from the private key.

below is the simple code.

export const wifToPublic = (privWif: string): string => {
  const privateKey = PrivateKey.fromString(privWif);
  return privateKey.createPublic(client.addressPrefix).toString();
};

Above code will convert the private key to a public key.

export const wifIsValid = (privWif: string, pubWif: string): boolean => {
  return wifToPublic(privWif) === pubWif;
};

Above code will validate that the private key matches the public key. next step is to get the public key from on the base of username. they match the Both key. if they will match then authentication will done.

I have applied some checks on the authentication like invalid username, invalid password and invalid credentials etc.

Screenshot 2024-12-16 221933.png
Screenshot 2024-12-16 222037.png
Screenshot 2024-12-16 222054.png

Technology Stack

To develop STEEMX, I am using Next.js with TypeScript. Subjected language will help to develop the modern and efficient experience that the Steemit users deserves.

Support @bountyking5 Witness

Your support is required for @bountyking5 witness, a dedicated witness who has been instrumental in supporting STEEMX and other ongoing projects in the Steemit ecosystem. Please consider to casting your witness vote.


2r8F9rTBenJQfQgENfxADE6EVYabczqmSF5KeWefV5WL9WGDwoE5cNuP4f1pr5UUQ4A5WGsZ1y45eRYtB46r1QiD7EQLTn44HJr2kribwtuEHdfW5wGbT24WjehaDmHe6.png

Please join our new puss project. Puss is the first native coin on steemit blockchain. Join us and buy it for long term.

Please cast your witness Vote to bountyking5

Executive Moderator @bountyking5

Follow | Upvote | Share | Comments

Cc: @rme
@steemchiller
@pennsif
@steemcurator01

🆃🅷🅰🅽🅺 🆈🅾🆄

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Upvoted! Thank you for supporting witness @jswit.