neofsrfc6979

package
v1.25.1-0...-2fdc35d Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package neofsrfc6979 provides RFC 6979's deterministic DSA implementations of neofscrypto elements. Based on crypto/ecdsa and github.com/nspcc-dev/rfc6979 libs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Public

Public provides neofscrypto.PublicKey interface of the ecdsa.PublicKey,

Verifies signature via ecdsa.Verify function.

Marshals key to a binary format via elliptic.Marshal.

Uses elliptic.P256() elliptic curve.

func PublicBlank

func PublicBlank() neofscrypto.PublicKey

PublicBlank provides neofscrypto.PublicKey interface of the blank ecdsa.PublicKey.

Commonly used to unmarshal the binary representation.

func Signer

func Signer(key ecdsa.PrivateKey) neofscrypto.Signer

Signer provides neofscrypto.Signer interface of the ecdsa.PrivateKey.

Public key is based on ecdsa.PublicKey.

Signature is calculated via rfc6979.SignECDSA and elliptic.Marshal functions over the result of SHA256 cryptographic hash function on data.

Uses elliptic.P256() elliptic curve.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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