pubkey

package
v0.0.0-...-f758046 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2019 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetKey

func GetKey(keyID string, cfg *config.Config) util.JSONResponse

func IsEphemeralPubKeyValid

func IsEphemeralPubKeyValid(keyBase64 string, db *database.Database) util.JSONResponse

func IsPubKeyValid

func IsPubKeyValid(keyBase64 string, cfg *config.Config) util.JSONResponse

func SetupRouting

func SetupRouting(router *mux.Router, cfg *config.Config, db *database.Database)

Types

type PublicKeyResponse

type PublicKeyResponse struct {
	PublicKey string `json:"public_key"`
}

type PublicKeyValidResponse

type PublicKeyValidResponse struct {
	Valid bool `json:"valid"`
}

Jump to

Keyboard shortcuts

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