Ariadne Signature Profile Exchange client library for the Dart language
- Dart 99.3%
- Nix 0.7%
| .woodpecker | fix: add event filter to CI | |
| example | fix: bad import in example | |
| lib | Add randomBytes function for cryptographic purposes | |
| test | fix: fix curve check before key encryption | |
| .gitignore | initial commit | |
| analysis_options.yaml | initial commit | |
| CHANGELOG.md | chore: release 0.3.10 | |
| LICENSE | feat: add LICENSE file | |
| pubspec.yaml | Bump package version | |
| README.md | fix: fix instructions to test unreleased code | |
| shell.nix | feat: add shell.nix | |
aspe-dart
This library lets you create ASP profiles that can be signed and uploaded to dedicated ASPE servers.
Features
- generate ES256 cryptographic keys
- create basic profiles with identity claims
- generate JWS (both "profile" and "request")
- send requests to ASPE servers
Getting started
The library is not (yet?) published on pub.dev.
To install the package, run:
dart pub add aspe --hosted-url=https://codeberg.org/api/packages/keyoxide/pub/
To test unreleased code, add this to pubspec.yaml:
dependencies:
aspe:
git:
url: https://codeberg.org/keyoxide/aspe-dart.git
ref: main
Usage
import 'package:aspe/aspe.dart';
var profile = AspProfile.create('aspe.tld');
profile.name = 'Alice';
profile.description = 'Hello Bob';
profile.color = '#6855c3';
profile.claims.add('dns:domain.tld?type=txt');
profile.claims.add('https://domain.tld/@alice');
await profile.upload();
More examples available in the 'example' folder.
Todo
- Data validation