at_demo_data 1.0.0 icon indicating copy to clipboard operation
at_demo_data: ^1.0.0 copied to clipboard

A Dart library that contains test data, testable @‎sign credentials and demo environment variables that can be used for writing demo apps and testing with the local test environment.

Now for a little internet optimism #

at_demo_data #

This library contains data that can be used for demo apps and testing when using The Virtual Environment (VE) which provides a full stack private @ enviroment to build and test applications offline. A number of preset @signs are included in the VE and the secrets and keys are provided in this repo for those test @signs.

Usage #

How to retrieve test environment values #

// Production environment
String prodRoot = at_demo_data.prodRoot;
int prodPort = at_demo_data.prodPort;

// Local environment
String virtualRoot = at_demo_data.virtualRoot;
int virtualPort = at_demo_data.virtualPort;

How to access sample data: #

// List of all atsigns
List<String> atSigns = at_demo_data.allAtsigns;

// PKAM public key String for a particular @sign can be retrieved from 
// the pkamPublicKeyMap
String pkamPublicKey = at_demo_data.pkamPublicKeyMap['@alice🛠'];

// PKAM private key String for a particular @sign can be retrieved from 
// the pkamPrivateKeyMap
String pkamPrivate = at_demo_data.pkamPrivateKeyMap['@alice🛠'];

// CRAM key String for a particular @sign can be retrieved from 
// the cramKeyMap
String cramKey = at_demo_data.cramKeyMap['@alice🛠'];
4
likes
120
pub points
47%
popularity

Publisher

verified publisher iconatsign.org

A Dart library that contains test data, testable @‎sign credentials and demo environment variables that can be used for writing demo apps and testing with the local test environment.

Homepage
Repository (GitHub)

Documentation

Documentation
API reference

License

Icon for licenses.BSD-3-Clause (LICENSE)

More

Packages that depend on at_demo_data