Package ecdsa implements the Elliptic Curve Digital Signature Algorithm, as defined in FIPS 186-3.
Sign signs an arbitrary length hash (which should be the result of hashing a larger message) using the private key, priv. It returns the signature as a pair of integers. The security of the private key depends on the entropy of rand.
Verify verifies the signature in r, s of hash using the public key, pub. It returns true iff the signature is valid.
PrivateKey represents a ECDSA private key.
GenerateKey generates a public and private key pair.
PublicKey represents an ECDSA public key.