Documentation
¶
Overview ¶
Package neofsecdsa provides ECDSA implementations of neofscrypto elements. Based on crypto/ecdsa lib.
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 ecdsa.Sign and elliptic.Marshal functions over the result of SHA512 cryptographic hash function on data.
Uses elliptic.P256() elliptic curve.
Types ¶
This section is empty.