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.
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.
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
🆃🅷🅰🅽🅺 🆈🅾🆄
Upvoted! Thank you for supporting witness @jswit.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit