Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 13-May-2020 | - | ||||
README.md | H A D | 13-May-2020 | 2.8 KiB | 69 | 50 | |
bench_test.go | H A D | 13-May-2020 | 4.9 KiB | 146 | 105 | |
btcec.go | H A D | 13-May-2020 | 37.5 KiB | 977 | 496 | |
btcec_test.go | H A D | 13-May-2020 | 28.9 KiB | 890 | 748 | |
ciphering.go | H A D | 13-May-2020 | 6.1 KiB | 217 | 128 | |
ciphering_test.go | H A D | 13-May-2020 | 5.9 KiB | 175 | 149 | |
doc.go | H A D | 13-May-2020 | 947 | 22 | 1 | |
example_test.go | H A D | 13-May-2020 | 4.8 KiB | 169 | 108 | |
field.go | H A D | 13-May-2020 | 51.4 KiB | 1,353 | 724 | |
field_test.go | H A D | 13-May-2020 | 31.5 KiB | 968 | 762 | |
genprecomps.go | H A D | 13-May-2020 | 1.8 KiB | 64 | 45 | |
gensecp256k1.go | H A D | 13-May-2020 | 5.9 KiB | 204 | 115 | |
precompute.go | H A D | 13-May-2020 | 1.9 KiB | 68 | 46 | |
privkey.go | H A D | 13-May-2020 | 2.2 KiB | 74 | 42 | |
privkey_test.go | H A D | 13-May-2020 | 1.2 KiB | 56 | 44 | |
pubkey.go | H A D | 13-May-2020 | 5.8 KiB | 195 | 129 | |
pubkey_test.go | H A D | 13-May-2020 | 9.2 KiB | 297 | 278 | |
secp256k1.go | H A D | 13-May-2020 | 1.1 MiB | 11 | 2 | |
signature.go | H A D | 13-May-2020 | 16.2 KiB | 541 | 331 | |
signature_test.go | H A D | 13-May-2020 | 23.8 KiB | 696 | 616 |
README.md
1btcec 2===== 3 4[![Build Status](https://travis-ci.org/btcsuite/btcd.png?branch=master)](https://travis-ci.org/btcsuite/btcec) 5[![ISC License](http://img.shields.io/badge/license-ISC-blue.svg)](http://copyfree.org) 6[![GoDoc](https://godoc.org/github.com/btcsuite/btcd/btcec?status.png)](http://godoc.org/github.com/btcsuite/btcd/btcec) 7 8Package btcec implements elliptic curve cryptography needed for working with 9Bitcoin (secp256k1 only for now). It is designed so that it may be used with the 10standard crypto/ecdsa packages provided with go. A comprehensive suite of test 11is provided to ensure proper functionality. Package btcec was originally based 12on work from ThePiachu which is licensed under the same terms as Go, but it has 13signficantly diverged since then. The btcsuite developers original is licensed 14under the liberal ISC license. 15 16Although this package was primarily written for btcd, it has intentionally been 17designed so it can be used as a standalone package for any projects needing to 18use secp256k1 elliptic curve cryptography. 19 20## Installation and Updating 21 22```bash 23$ go get -u github.com/btcsuite/btcd/btcec 24``` 25 26## Examples 27 28* [Sign Message](http://godoc.org/github.com/btcsuite/btcd/btcec#example-package--SignMessage) 29 Demonstrates signing a message with a secp256k1 private key that is first 30 parsed form raw bytes and serializing the generated signature. 31 32* [Verify Signature](http://godoc.org/github.com/btcsuite/btcd/btcec#example-package--VerifySignature) 33 Demonstrates verifying a secp256k1 signature against a public key that is 34 first parsed from raw bytes. The signature is also parsed from raw bytes. 35 36* [Encryption](http://godoc.org/github.com/btcsuite/btcd/btcec#example-package--EncryptMessage) 37 Demonstrates encrypting a message for a public key that is first parsed from 38 raw bytes, then decrypting it using the corresponding private key. 39 40* [Decryption](http://godoc.org/github.com/btcsuite/btcd/btcec#example-package--DecryptMessage) 41 Demonstrates decrypting a message using a private key that is first parsed 42 from raw bytes. 43 44## GPG Verification Key 45 46All official release tags are signed by Conformal so users can ensure the code 47has not been tampered with and is coming from the btcsuite developers. To 48verify the signature perform the following: 49 50- Download the public key from the Conformal website at 51 https://opensource.conformal.com/GIT-GPG-KEY-conformal.txt 52 53- Import the public key into your GPG keyring: 54 ```bash 55 gpg --import GIT-GPG-KEY-conformal.txt 56 ``` 57 58- Verify the release tag with the following command where `TAG_NAME` is a 59 placeholder for the specific tag: 60 ```bash 61 git tag -v TAG_NAME 62 ``` 63 64## License 65 66Package btcec is licensed under the [copyfree](http://copyfree.org) ISC License 67except for btcec.go and btcec_test.go which is under the same license as Go. 68 69