proof

package
v0.20.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package proof creates and verifies integrity proofs.

See https://codeberg.org/fediverse/fep/src/branch/main/fep/8b32/fep-8b32.md for more details.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(key httpsig.Key, now time.Time, raw []byte) ([]byte, error)

Add adds an eddsa-jcs-2022 integrity proof to a JSON object.

func Create

func Create(key httpsig.Key, doc any) (ap.Proof, error)

Create creates an eddsa-jcs-2022 integrity proof for a JSON object.

func Verify

func Verify(key any, proof ap.Proof, raw []byte) error

Verify verifies an integrity proof.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL