ed25519hash

package
v0.16.2 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 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
edwards25519
Package edwards25519 implements primitives used in the ed25519 signature algorithm.
Package edwards25519 implements primitives used in the ed25519 signature algorithm.

Jump to

Keyboard shortcuts

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