Documentation ¶
Overview ¶
Package cryptoalgo provides functionality for working with various cryptographic signature algorithms.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UnmarshalKey ¶
func UnmarshalKey(algo SignatureAlgorithm, binKey []byte) (neofscrypto.PublicKey, error)
UnmarshalKey unmarshals neofscrypto.PublicKey from a binary representation according to SignatureAlgorithm.
If algo is not supported, an error returns.
Types ¶
type SignatureAlgorithm ¶
type SignatureAlgorithm int
SignatureAlgorithm represents enumeration of cryptographic signature algorithms.
const ( // ECDSA is a SignatureAlgorithm for Elliptic Curve Digital Signature Algorithm, // as defined in FIPS 186-3. ECDSA SignatureAlgorithm // RFC6979 is a SignatureAlgorithm for RFC 6979's deterministic DSA. RFC6979 )
Click to show internal directories.
Click to hide internal directories.