signing

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package sign manages HTTP signatures and storing a pair of private and public keys. This package is a wrapper around Ted of the Honk's httpsig package, which is vendored in Betula.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureKeysFromDatabase

func EnsureKeysFromDatabase()

EnsureKeysFromDatabase reads the keys from the database and remembers them. If they are not found, it comes up with new ones and saves them. This function might crash the application.

func PublicKey

func PublicKey() string

func SignRequest

func SignRequest(rq *http.Request, content []byte)

SignRequest signs the request.

Types

This section is empty.

Directories

Path Synopsis
An implementation of HTTP Signatures
An implementation of HTTP Signatures

Jump to

Keyboard shortcuts

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