Skip to content

Reference

phil/open-badges

Phil\OpenBadges

TypeRole
IssuerThe issuer's Profile, embedded in its credentials; profileDocument() with its Multikey verification methods.
AchievementWhat is recognized, with its criteria, image and endorsements.
RecipientA DID, or a salted hash of an e-mail address or URL; identifies() checks who presents a credential.
CredentialIssuerBuilds an OpenBadgeCredential; issue() secures it as a JSON Web Token.
EndorsementIssuerBuilds the EndorsementCredential a third party signs.
EndorsementsThe endorsement and endorsementJwt fields.
ContextThe URLs of the JSON-LD contexts.
CredentialsInternal: identifiers and periods of validity.

Phil\OpenBadges\Key and Phil\OpenBadges\Contract

TypeRole
Contract\Signer, Contract\VerificationKeyA private key that signs, a public key that verifies.
Contract\VerificationMethodsFinds the key a verification method names.
Contract\ContextLoaderGives the JSON-LD context of a URL.
Key\Ed25519Signer, Key\Ed25519KeyEdDSA through libsodium; JSON Web Keys and Multikeys.
Key\RsaSigner, Key\RsaKeyRS256 through OpenSSL, 2048 bits or more.

Securing and verifying

TypeRole
Jwt\JwtSigner, Jwt\JwtVerifierVC-JWT, the algorithm taken from the key.
DataIntegrity\EddsaRdfc2022The eddsa-rdfc-2022 cryptosuite: sign(), verify(), canonicalize().
DataIntegrity\DidKeyMethodsThe application's keys and every Ed25519 did:key.
JsonLd\BundledContextsThe bundled contexts and those the application adds.
JsonLd\ToRdf, JsonLd\Conversion, JsonLd\ContextProcessor, JsonLd\ActiveContext, JsonLd\TermDefinition, JsonLd\TermDefiningInternal: JSON-LD to RDF in safe mode.
Rdf\Canonicalizer, Rdf\IdentifierIssuer, Rdf\NQuadsInternal: RDFC-1.0 and canonical N-Quads.
Verification\CredentialVerifier, Verification\VerifiedCredentialA token or a document verified, with its period and status entry.

Status, records, images

TypeRole
Status\StatusListEntryA credential's credentialStatus.
Status\StatusListThe bits of a Bitstring Status List, encoded and decoded.
Status\StatusListIssuerThe BitstringStatusListCredential; applies() reads a status from it.
Clr\ClrIssuerA Comprehensive Learner Record 2.0.
Baking\PngBaker, Baking\SvgBakerA credential baked into and read from an image.
Baking\BakedInternal: what an image may hold.

Phil\OpenBadges\Encoding and Phil\OpenBadges\Exception

TypeRole
Encoding\Base64Url, Encoding\Base58Btc, Encoding\MultibaseThe encodings of tokens, proofs, keys and lists.
Exception\OpenBadgesExceptionImplemented by every exception of the library.
Exception\InvalidBadge, Exception\InvalidCredential, Exception\InvalidImageSee Exceptions.