torus_direct 1.0.0+2 copy "torus_direct: ^1.0.0+2" to clipboard
torus_direct: ^1.0.0+2 copied to clipboard

outdated

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!

3
likes
0
pub points
0%
popularity

Publisher

verified publishertorusresearch.org

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

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on torus_direct