signer

package
v0.3.8 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2022 License: MIT Imports: 1 Imported by: 4

Documentation

Overview

Package signer defines and implements a simple Signer opaque identity which encapsulates the private key used to sign data and provides an accessor for its public key. It is intentionally different from crypto.Signer and simpler.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Signer

type Signer ed25519.PrivateKey

func New

func New(k ed25519.PrivateKey) Signer

func (Signer) Public

func (s Signer) Public() ed25519.PublicKey

func (Signer) Sign

func (s Signer) Sign(data []byte) []byte

Jump to

Keyboard shortcuts

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