Small clarification.

This commit is contained in:
Coda Hale 2013-08-20 17:47:02 -07:00
parent b7c529105e
commit 137727d2f8

View file

@ -25,6 +25,7 @@ func main() {
alg.Write([]byte("I am a potato.")) alg.Write([]byte("I am a potato."))
hash := alg.Sum(nil) hash := alg.Sum(nil)
// Sign the message. You don't need a PRNG for this.
r, s, _ := rfc6979.SignECDSA(k, hash, sha512.New) r, s, _ := rfc6979.SignECDSA(k, hash, sha512.New)
fmt.Printf("Signature: %X%X", r, s) fmt.Printf("Signature: %X%X", r, s)
} }