mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-05-27 17:26:43 +00:00

* [NOD-494] Updated main README.md * [NOD-494] Updated blockdag/README.md * [NOD-494] Aligned text length in main README.md * [NOD-494] Updated most remaining packages READMEs + deleted util/coinset * [NOD-494] Update integration README * [NOD-494] Did a final pass over all readmes * [NOD-494] Updated README for DNSSeeder with more info on how to create a functioning setup * [NOD-494] Remove all double spaces from readmes * [NOD-494] Minor fixes in READMEs + update license to kaspanet developers * [NOD-494] Add backtick around ecc and util in hdkeychain README
25 lines
1.2 KiB
Markdown
25 lines
1.2 KiB
Markdown
ecc
|
|
=====
|
|
|
|
[](http://copyfree.org)
|
|
[](http://godoc.org/github.com/kaspanet/kaspad/ecc)
|
|
|
|
Package ecc implements elliptic curve cryptography needed for working with
|
|
Kaspa. It is designed so that it may be used with the standard crypto/ecdsa
|
|
packages provided with go. A comprehensive suite of tests is provided to ensure
|
|
proper functionality. Package ecc was originally based on work from ThePiachu
|
|
which is licensed under the same terms as Go, but it has signficantly diverged
|
|
since then. The kaspanet developers original is licensed under the liberal ISC
|
|
license.
|
|
|
|
## Examples
|
|
|
|
* [Sign Message](http://godoc.org/github.com/kaspanet/kaspad/ecc#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](http://godoc.org/github.com/kaspanet/kaspad/ecc#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.
|
|
|