at_demo_data 0.0.2+1 copy "at_demo_data: ^0.0.2+1" to clipboard
at_demo_data: ^0.0.2+1 copied to clipboard

unlistedoutdated

A library of data that contains demo enviroment variables and @sign credentials that can used for demo apps and testing

at_demo_data #

This library contains data that can be used for demo apps and testing.

Installation: #

To use this library in your app, first add it to your pubspec.yaml

dependencies:
  at_demo_data: ^0.0.2

Add to your project #

pub get 

Import in your application code #

import 'package:at_demo_data/at_demo_data.dart' as at_demo_data;

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
0
pub points
52%
popularity

Publisher

verified publisheratsign.org

A library of data that contains demo enviroment variables and @sign credentials that can used for demo apps and testing

Homepage
Repository (GitHub)
View/report issues

Documentation

Documentation

License

unknown (license)

More

Packages that depend on at_demo_data