verifyDownload

package module
v0.0.0-...-c942b49 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2022 License: BSD-3-Clause Imports: 4 Imported by: 0

README

Download and verify Minisign signed files

This library abstracts the proccess of downloading and verifiying Minisign files.

Provides the function verifyDownload.Verify(...) which needs as input (URL string, signatureURL string, rawPublicKey string) and returns ([]byte, error)

Example:

func main() {
        file, err := verifyDownload.Verify("{URL of file here} string",
                                           "{URL of signature} string",
                                           "{Publick Key} string")
        if err != nil {
                        fmt.Print(err)
        } else {
                        fmt.Print(file)
        }
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Verify

func Verify(URL string, signatureURL string, rawPublicKey string) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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