did-btcr2-js

@did-btcr2/aggregation

Multi-party coordination for did:btcr2 aggregate beacons (CAS and SMT). Extracted from @did-btcr2/method so an aggregation operator can depend on the protocol without the rest of the method runtime.

What’s here

The role entry points let a client avoid bundling server code and a service avoid bundling client code: import from @did-btcr2/aggregation/core (shared protocol, crypto, messages, cohort model, and the base and shared transports), @did-btcr2/aggregation/participant (client role plus HTTP client transport), or @did-btcr2/aggregation/service (coordinating role plus HTTP server transport). The umbrella @did-btcr2/aggregation re-exports all three and adds the in-process single-party runner and TransportFactory.

The fee estimator contract (FeeEstimator, StaticFeeEstimator) lives in @did-btcr2/bitcoin; this package consumes it.

See the did-btcr2-js monorepo and the architecture decision records (ADRs 008, 020, 027, 028-032, 038-046, 050) for the design.

License

MPL-2.0