Documentation ¶
Overview ¶
Package ecdsa loads an ECDSA P-256 private key (*crypto/ecdsa.PrivateKey) from string representations of its key parameters. See https://spec.smarthealth.cards/#generating-and-resolving-cryptographic-keys.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadKey ¶
func LoadKey(d, x, y string) (*ecdsa.PrivateKey, error)
LoadKey takes string representations of the d, x, and y paramters of an ECDSA key, and loads them as *math/big.Int objects using the (*math/big.Int).UnmarshalText method. Then it return an ECDSA private key of type *crypto/ecdsa.PrivateKey.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.