didwebvh 0.1.2 copy "didwebvh: ^0.1.2" to clipboard
didwebvh: ^0.1.2 copied to clipboard

Spec-aligned did:webvh v1.0 for Dart: create, resolve, update, migrate, deactivate, and parallel did:web publishing. A faithful, idiomatic port of didwebvh-java.

didwebvh #

pub package

Pure-Dart core library for the did:webvh (DID Web + Verifiable History) DID method, v1.0: log entries, the byte-exact crypto primitives (JCS / multihash / base58btc / multikey), SCID, entry-hash and eddsa-jcs-2022 proofs, and the create / update / migrate / deactivate / resolve / validate flows — with pluggable signing via the async Signer interface.

This is a faithful port of the reference Java library didwebvh-java, written to behave identically while reading like idiomatic Dart.

Install #

dart pub add didwebvh
# add a Signer implementation, e.g.:
dart pub add didwebvh_signing_local

Usage #

import 'package:didwebvh/didwebvh.dart';
import 'package:didwebvh_signing_local/didwebvh_signing_local.dart';

final signer = await LocalKeySigner.generate();

final created = await DidWebVh.create('example.com', signer)
    .path('dids:alice')
    .execute();

final result = await DidResolver()
    .resolveFromLog(created.logLine, created.did);
print(result.didDocument?.id);

didwebvh defines the Signer interface but ships no key implementation — see example/ for an inline signer, or use LocalKeySigner from didwebvh_signing_local (or a KMS/HSM-backed Signer).

See the repository README for the full guide (create, resolve, update, migrate, deactivate, witnesses, pre-rotation, parallel did:web).

License #

Apache-2.0.

1
likes
160
points
191
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Spec-aligned did:webvh v1.0 for Dart: create, resolve, update, migrate, deactivate, and parallel did:web publishing. A faithful, idiomatic port of didwebvh-java.

Repository (GitHub)
View/report issues
Contributing

Topics

#did #didwebvh #ssi #identity #cryptography

License

Apache-2.0 (license)

Dependencies

crypto, cryptography, http, punycode, unorm_dart

More

Packages that depend on didwebvh