npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@origintrail-official/dkg-attested-assets

v0.0.1-dev.1773614346.8bc4e9c

Published

> **Experimental** — This package implements the Attested Knowledge Assets (AKA) protocol, which is under active development. APIs may change.

Downloads

314

Readme

@origintrail-official/dkg-attested-assets

Experimental — This package implements the Attested Knowledge Assets (AKA) protocol, which is under active development. APIs may change.

Session-scoped, multi-party consensus protocol for DKG V9. Enables bounded groups of nodes to run deterministic state machines with cryptographic attestation and quorum-based finality.

What are Attested Knowledge Assets?

Standard Knowledge Assets are published to open paranets — any node can write. Attested Knowledge Assets add a session layer on top: a fixed set of members, a deterministic reducer (state machine), and a quorum policy. State transitions only finalize when enough members independently validate and sign off.

Use cases: multiplayer games, collaborative agent workflows, multi-party computations, supply chain checkpoints.

See the full protocol spec at docs/SPEC_ATTESTED_KNOWLEDGE_ASSETS.md.

Features

  • SessionManager — orchestrates the full session lifecycle: creation, membership acceptance, activation, round progression, timeout/view-change, and abort
  • Deterministic reducersReducerRegistry for registering application-specific state machines that produce identical output for identical input
  • Canonical encoding — RFC 8785 JSON Canonicalization Scheme for deterministic hashing and Ed25519 signing with domain separation (AKA-v1)
  • Quorum engine — configurable quorum policies (fraction-based, e.g., 2/3 majority) with isQuorumMet checks
  • Session validator — enforces membership, state linkage, replay protection, timing, proposer authority, signature verification, and equivocation detection
  • GossipSub integrationAKAGossipHandler for broadcasting and receiving AKA events over paranet and session-specific topics
  • Protobuf serialization — efficient encode/decode for all AKA event types
  • REST API routescreateSessionRoutes() exposes session management and round operations via HTTP

Session Lifecycle

PROPOSED → ACCEPTED → ACTIVE → rounds... → COMPLETED
                                    ↘ ABORTED (on failure/timeout)

Each round follows: start → collect inputs → propose → validate & ACK → quorum check → finalize.

Usage

import { SessionManager, ReducerRegistry } from '@origintrail-official/dkg-attested-assets';

// Register a reducer for your application
ReducerRegistry.register({
  name: 'my-game',
  version: '1.0.0',
  hash: computedHash,
  reduce(state, inputs) {
    // Deterministic state transition logic
    return { ...state, turn: state.turn + 1 };
  },
});

// Create a session
const session = await sessionManager.createSession({
  paranetId: 'urn:paranet:my-app',
  members: [{ peerId: 'peer-1', role: 'validator' }, ...],
  quorum: { numerator: 2, denominator: 3 },
  reducer: { name: 'my-game', version: '1.0.0', hash: '...' },
});

Internal Dependencies

  • @origintrail-official/dkg-core — P2P node, GossipSub, event bus, crypto primitives
  • @origintrail-official/dkg-storage — session state persistence