1
0
Fork
You've already forked aspe-dart
0
forked from keyoxide/aspe-dart
Ariadne Signature Profile Exchange client library for the Dart language
  • Dart 99.3%
  • Nix 0.7%
2025年04月12日 12:58:02 +02:00
.woodpecker fix: add event filter to CI 2024年06月07日 19:41:24 +02:00
example fix: bad import in example 2024年06月07日 19:36:54 +02:00
lib Add randomBytes function for cryptographic purposes 2025年04月12日 10:35:12 +02:00
test fix: fix curve check before key encryption 2024年02月12日 11:00:14 +01:00
.gitignore initial commit 2023年10月08日 11:23:05 +02:00
analysis_options.yaml initial commit 2023年10月08日 11:23:05 +02:00
CHANGELOG.md chore: release 0.3.10 2024年06月07日 19:44:39 +02:00
LICENSE feat: add LICENSE file 2023年10月08日 17:40:03 +02:00
pubspec.yaml Bump package version 2025年04月12日 12:58:02 +02:00
README.md fix: fix instructions to test unreleased code 2024年01月08日 20:53:59 +01:00
shell.nix feat: add shell.nix 2024年02月11日 13:15:04 +01:00

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