dcrec: fix examples links.

This commit is contained in:
Donald Adu-Poku 2019-10-07 13:32:00 +00:00 committed by Dave Collins
parent 93dc592615
commit b8dff59d4c

View File

@ -25,19 +25,19 @@ $ go get -u github.com/decred/dcrd/dcrec
## Examples
* [Sign Message](https://godoc.org/github.com/decred/dcrd/dcrec#example-package--SignMessage)
* [Sign Message](https://godoc.org/github.com/decred/dcrd/dcrec/secp256k1#example-package--SignMessage)
Demonstrates signing a message with a secp256k1 private key that is first
parsed form raw bytes and serializing the generated signature.
* [Verify Signature](https://godoc.org/github.com/decred/dcrd/dcrec#example-package--VerifySignature)
* [Verify Signature](https://godoc.org/github.com/decred/dcrd/dcrec/secp256k1#example-package--VerifySignature)
Demonstrates verifying a secp256k1 signature against a public key that is
first parsed from raw bytes. The signature is also parsed from raw bytes.
* [Encryption](https://godoc.org/github.com/decred/dcrd/dcrec#example-package--EncryptMessage)
* [Encryption](https://godoc.org/github.com/decred/dcrd/dcrec/secp256k1#example-package--EncryptMessage)
Demonstrates encrypting a message for a public key that is first parsed from
raw bytes, then decrypting it using the corresponding private key.
* [Decryption](https://godoc.org/github.com/decred/dcrdy/dcrec#example-package--DecryptMessage)
* [Decryption](https://godoc.org/github.com/decred/dcrd/dcrec/secp256k1#example-package--DecryptMessage)
Demonstrates decrypting a message using a private key that is first parsed
from raw bytes.