Ylide Protocol
  • What is Ylide Protocol?
  • Parts of the Ylide
  • Glossary
  • Use Ylide
    • Getting started
    • Authorization
    • Sending message
    • Reading message
  • Fundamentals
    • Communication keys
    • Storage of communication keys
    • Cryptographic primitives
    • Sending and reading messages
    • Registration of public keys
    • Smart contracts & blockchain interaction
    • On-chain indexing
  • Extras
    • FAQ
Powered by GitBook
On this page
  1. Use Ylide

Authorization

First of all, you should request access to the wallet account. It will trigger wallet's window for providing you with permission. Let’s do this:

const account = await wallet.requestAuthentication();

Now, we can check user's status and make an appropriate action:

if (await ylide.auth.isRegistered(account)) {
    await ylide.auth.login(account);
} else {
    await ylide.auth.register(account);
}

Key is ready and available for usage.

PreviousGetting startedNextSending message

Last updated 1 year ago