dartstr_utils 0.0.2 copy "dartstr_utils: ^0.0.2" to clipboard
dartstr_utils: ^0.0.2 copied to clipboard

A library that is part of the dartstr mono-repo to offer some common utilities needed by different Nostr NIPs.

Features #

  • ✅ Secret Generator: generate secure random number bytes or hex strings for use as secrets in Nostr.

Getting started #

Installation #

In your pubspec.yaml file add:

dependencies:
  dartstr_utils: ^0.0.2

Usage #

import 'package:dartstr_utils/dartstr_utils.dart';

final secretBytes = SecretGenerator.secretBytes(32);
print('secretBytes: $secretBytes');

final secretHex = SecretGenerator.secretHex(64);
print('secretHex: $secretHex');

Additional information #

This package is part of the Dartstr monorepo, which contains a set of modular and compatible Dart packages of different Nostr NIPS and utilities. Import just the packages of NIPS you need and keep your project lightweight. See the Dartstr monorepo for all available packages.

1
likes
160
pub points
4%
popularity

Publisher

verified publisherkumuly.dev

A library that is part of the dartstr mono-repo to offer some common utilities needed by different Nostr NIPs.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

convert

More

Packages that depend on dartstr_utils