Small clarification.
This commit is contained in:
parent
b7c529105e
commit
137727d2f8
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue