at_demo_data 0.0.2+1
at_demo_data: ^0.0.2+1

Dart native js
Flutter Android iOS web

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đź› '];
0
likes
100
pub points
56%
popularity

Publisher

atsign.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
API reference

License

BSD (LICENSE)

More

Packages that depend on at_demo_data