HTTP Signatures implementation.
Attaches a LD signature to the given JSON-LD document.
Creates a proof for the given object.
Creates a LD signature for the given JSON-LD document.
Detaches Linked Data Signatures from the given JSON-LD document.
Checks if the actor of the given activity owns the specified key.
Exports a key in JWK format.
Generates a key pair which is appropriate for Fedify.
Gets the actor that owns the specified key. Returns null
if the key has no
known owner.
Imports a key from JWK format.
Signs the given JSON-LD document with the private key and returns the signed JSON-LD document.
Signs the given object with the private key and returns the signed object.
Signs a request using the given private key.
Verify the authenticity of the given JSON-LD document using Linked Data
Signatures. If the document is signed, this function verifies the signature
and checks if the document is attributed to the owner of the public key.
If the document is not signed, this function returns false
.
Verifies the given object. It will verify all the proofs in the object, and succeed only if all the proofs are valid and all attributions and actors are authenticated by the proofs.
Verifies the given proof for the object.
Verifies the signature of a request.
Verifies Linked Data Signatures of the given JSON-LD document.
Options for signing JSON-LD documents.
Options for verifying JSON-LD documents.
Options for verifyObject.
Options for verifying Linked Data Signatures.
Add Package
deno add jsr:@fedify/fedify
Import symbol
import * as mod from "@fedify/fedify/sig";
---- OR ----
Import directly with a jsr specifier
import * as mod from "jsr:@fedify/fedify/sig";
Add Package
npx jsr add @fedify/fedify
Import symbol
import * as mod from "@fedify/fedify/sig";
Add Package
yarn dlx jsr add @fedify/fedify
Import symbol
import * as mod from "@fedify/fedify/sig";
Add Package
pnpm dlx jsr add @fedify/fedify
Import symbol
import * as mod from "@fedify/fedify/sig";
Add Package
bunx jsr add @fedify/fedify
Import symbol
import * as mod from "@fedify/fedify/sig";