ed25519hash

package
v0.18.2 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2020 License: MIT Imports: 6 Imported by: 2

Documentation

Overview

Package ed25519hash provides optimized routines for signing and verifying Sia hashes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractPublicKey

func ExtractPublicKey(priv ed25519.PrivateKey) ed25519.PublicKey

ExtractPublicKey extracts the PublicKey portion of priv.

func Sign

func Sign(priv ed25519.PrivateKey, hash crypto.Hash) []byte

Sign signs a hash with priv.

func Verify

func Verify(pub ed25519.PublicKey, hash crypto.Hash, sig []byte) bool

Verify reports whether sig is a valid signature of hash by pub.

Types

This section is empty.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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