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 ¶
func Public(key ecdsa.PublicKey) neofscrypto.PublicKey
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.