0.0.7 • Published 2 years ago

@incubiq/siwc v0.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

siwc

Sign-In With Cardano (deprecated).

This package is now replaced by @incubiq/siww which is more generic whilst still providing a full implementation for connecting to Cardano wallets via a JS library

Install

This module is installed directly using npm:

$ npm install @incubiq/siwc

API

import siwc from "@incubiq/siwc";

This library allows you to Authenticate via a Cardano compatible wallet

siwc.async_connectWallet(_id)

Call this function to connect to a wallet whose ID is _id. If siwc was initialized with a callback, it will be called upon sucessful (or failed) connection.

siwc.async_createMessage(_id, {})

Call this function to create a message and send it to the connected wallet.

siwc.async_signMessage(_id, {}, "authentication");

Call this function to ask a user to sign a message in the connected wallet. If siwc was initialized with a callback, it will be called upon sucessful (or failed) message creation.

License

MIT