at_demo_data 1.0.1 copy "at_demo_data: ^1.0.1" to clipboard
at_demo_data: ^1.0.1 copied to clipboard

unlisted

A Dart library that contains testable atSign credentials and demo variables which can be used for testing with the local test environment.

example/at_demo_data_example.dart

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

/// demo @signs
///
/// List all @signs
List<String> allAtsigns = at_demo_data.allAtsigns;

/// Get a random @sign
final Random _random = Random();
String randomAtsign =
    at_demo_data.allAtsigns[_random.nextInt(at_demo_data.allAtsigns.length)];

/// demo keys
///
/// CRAM keys
///
/// CRAM keys Map
Map<String, String> cramKeyMap = at_demo_data.cramKeyMap;

/// get CRAM key for an @sign
String cramKey = cramKeyMap[randomAtsign]!;

/// PKAM keys
///
/// PKAM public keys
///
/// PKAM public keys Map
Map<String, String> pkamPublicKeyMap = at_demo_data.pkamPublicKeyMap;

/// get PKAM public key for an @sign
String pkamPublicKey = pkamPublicKeyMap[randomAtsign]!;

/// PKAM private keys
///
/// PKAM private keys Map
Map<String, String> pkamPrivateKeyMap = at_demo_data.pkamPrivateKeyMap;

/// get PKAM private key for an @sign
String pkamPrivateKey = pkamPrivateKeyMap[randomAtsign]!;
4
likes
0
pub points
52%
popularity

Publisher

verified publisheratsign.org

A Dart library that contains testable atSign credentials and demo variables which can be used for testing with the local test environment.

Homepage
Repository (GitHub)
View/report issues

Documentation

Documentation

License

unknown (license)

More

Packages that depend on at_demo_data