torus_direct 1.0.0+2

Flutter iOS

Interact with the Torus Network to assign, store and retrieve private keys.

torus_direct #

Interact with the Torus Network to assign, store and retrieve private keys.

Usage #

Import the package:

import 'package:torus_direct/torus_direct.dart';

Set the verifier details for TorusDirect depending on the login you require:

 TorusDirect.setVerifierDetails(
        LoginType.installed.value,
        VerifierType.singleLogin.value,
        verifierName,
        <your-client-id>,
        LoginProvider.google.value,
        google,
        <your-redirect-url>);

Logins are dependent on verifier scripts/verifiers. There are other verifiers including singleIdVerifier, andAggregateVerifier, orAggregateVerifier and singleLogin of which you may need to use depending on your required logins. To get your application's verifier script setup, do reach out to hello@tor.us or to read more about verifiers do checkout the docs.

After setting your verifier, you can use TorusDirect to trigger a login:

torusLoginInfo = await TorusDirect.triggerLogin();

After this you're good to go, reach out to hello@tor.us to get your verifier spun up on the testnet today!

0
likes
80
pub points
7%
popularity

Interact with the Torus Network to assign, store and retrieve private keys.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

parkssa123@gmail.com

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on torus_direct