Module PeerBadge SDK (npm)

Functions§

initTracing

Install a tracing subscriber that forwards Rust tracing events to the JavaScript console.

parseTrustScoreBadgeV1

Parse a cryptographically verified credential as a fedi-trust-score-v1.0 badge.

trustScoreBlindMsgV1

Build the issuance blind_msg value binding a fedi-trust-score-v1.0 badge to a holder.

trustScoreInfoV1

Build the issuance info value for a fedi-trust-score-v1.0 badge.

trustScoreSchemaV1

The info.schema identifier for trust-score badges, revision v1.0.

Classes§

HolderContext

Holder-side context for generating holder identity keys.

IssuerContext

Issuer-side context for creating issuer authorities, issuing credentials, and revoking credentials.

PendingIssuance

Holder-side pending issuance state required to finalize one issuer response.

VerificationContext

Verifier-side context containing trusted issuers and ingested revocations.