mirror of
https://github.com/FlipsideCrypto/dcrd.git
synced 2026-02-06 02:46:58 +00:00
multi: Use https links where available.
This commit is contained in:
parent
2036772446
commit
893aa30dce
2
CHANGES
2
CHANGES
@ -47,7 +47,7 @@ Changes in 0.11.0 (Wed May 06 2015)
|
||||
- Fix a case that could lead stalled syncs (#138, #296)
|
||||
- Network address manager changes:
|
||||
- Implement eclipse attack countermeasures as proposed in
|
||||
http://cs-people.bu.edu/heilman/eclipse (#370, #373)
|
||||
https://cs-people.bu.edu/heilman/eclipse (#370, #373)
|
||||
- Optional address indexing changes:
|
||||
- Fix an issue where a reorg could cause an orderly shutdown when the
|
||||
address index is active (#340, #357)
|
||||
|
||||
@ -2,8 +2,8 @@ dcrd
|
||||
====
|
||||
|
||||
[](https://travis-ci.org/decred/dcrd)
|
||||
[](http://copyfree.org)
|
||||
[](http://godoc.org/github.com/decred/dcrd)
|
||||
[](http://copyfree.org)
|
||||
[](https://godoc.org/github.com/decred/dcrd)
|
||||
[](https://goreportcard.com/report/github.com/decred/dcrd)
|
||||
|
||||
## Decred Overview
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
bech32
|
||||
==========
|
||||
|
||||
[](https://travis-ci.org/decred/dcrd/bech32)
|
||||
[](http://copyfree.org)
|
||||
[](http://godoc.org/github.com/decred/dcrd/bech32)
|
||||
[](https://travis-ci.org/decred/dcrd/bech32)
|
||||
[](http://copyfree.org)
|
||||
[](https://godoc.org/github.com/decred/dcrd/bech32)
|
||||
|
||||
Package bech32 provides a Go implementation of the bech32 format specified in
|
||||
[BIP 173](https://github.com/bitcoin/bips/blob/master/bip-0173.mediawiki).
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
blockchain
|
||||
==========
|
||||
|
||||
[](https://travis-ci.org/decred/dcrd)
|
||||
[](http://copyfree.org)
|
||||
[](http://godoc.org/github.com/decred/dcrd/blockchain)
|
||||
[](https://travis-ci.org/decred/dcrd)
|
||||
[](http://copyfree.org)
|
||||
[](https://godoc.org/github.com/decred/dcrd/blockchain)
|
||||
|
||||
Package blockchain implements Decred block handling and chain selection rules.
|
||||
The test coverage is currently only around 60%, but will be increasing over
|
||||
@ -61,18 +61,18 @@ is by no means exhaustive:
|
||||
|
||||
## Examples
|
||||
|
||||
* [ProcessBlock Example](http://godoc.org/github.com/decred/dcrd/blockchain#example-BlockChain-ProcessBlock)
|
||||
* [ProcessBlock Example](https://godoc.org/github.com/decred/dcrd/blockchain#example-BlockChain-ProcessBlock)
|
||||
Demonstrates how to create a new chain instance and use ProcessBlock to
|
||||
attempt to add a block to the chain. This example intentionally
|
||||
attempts to insert a duplicate genesis block to illustrate how an invalid
|
||||
block is handled.
|
||||
|
||||
* [CompactToBig Example](http://godoc.org/github.com/decred/dcrd/blockchain#example-CompactToBig)
|
||||
* [CompactToBig Example](https://godoc.org/github.com/decred/dcrd/blockchain#example-CompactToBig)
|
||||
Demonstrates how to convert the compact "bits" in a block header which
|
||||
represent the target difficulty to a big integer and display it using the
|
||||
typical hex notation.
|
||||
|
||||
* [BigToCompact Example](http://godoc.org/github.com/decred/dcrd/blockchain#example-BigToCompact)
|
||||
* [BigToCompact Example](https://godoc.org/github.com/decred/dcrd/blockchain#example-BigToCompact)
|
||||
Demonstrates how to convert how to convert a target difficulty into the
|
||||
compact "bits" in a block header which represent that target difficulty.
|
||||
|
||||
|
||||
@ -2,8 +2,8 @@ chaingen
|
||||
========
|
||||
|
||||
[](https://travis-ci.org/decred/dcrd)
|
||||
[](http://copyfree.org)
|
||||
[](http://godoc.org/github.com/decred/dcrd/blockchain/chaingen)
|
||||
[](http://copyfree.org)
|
||||
[](https://godoc.org/github.com/decred/dcrd/blockchain/chaingen)
|
||||
|
||||
Package chaingen provides facilities for generating a full chain of blocks.
|
||||
|
||||
@ -26,7 +26,7 @@ functions.
|
||||
## Examples
|
||||
|
||||
* [Basic Usage Example]
|
||||
(http://godoc.org/github.com/decred/dcrd/blockchain/chaingen#example-package--BasicUsage)
|
||||
(https://godoc.org/github.com/decred/dcrd/blockchain/chaingen#example-package--BasicUsage)
|
||||
Demonstrates creating a new generator instance and using it to generate the
|
||||
required premine block and enough blocks to have mature coinbase outputs to
|
||||
work with along with asserting the generator state along the way.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
fullblocktests
|
||||
==============
|
||||
|
||||
[](https://travis-ci.org/decred/dcrd)
|
||||
[](http://copyfree.org)
|
||||
[](http://godoc.org/github.com/decred/dcrd/blockchain/fullblocktests)
|
||||
[](https://travis-ci.org/decred/dcrd)
|
||||
[](http://copyfree.org)
|
||||
[](https://godoc.org/github.com/decred/dcrd/blockchain/fullblocktests)
|
||||
|
||||
Package fullblocktests provides a set of full block tests to be used for testing
|
||||
the consensus validation rules. The tests are intended to be flexible enough to
|
||||
|
||||
@ -2,8 +2,8 @@ indexers
|
||||
========
|
||||
|
||||
[](https://travis-ci.org/decred/dcrd)
|
||||
[](http://copyfree.org)
|
||||
[](http://godoc.org/github.com/decred/dcrd/blockchain/indexers)
|
||||
[](http://copyfree.org)
|
||||
[](https://godoc.org/github.com/decred/dcrd/blockchain/indexers)
|
||||
|
||||
Package indexers implements optional block chain indexes.
|
||||
|
||||
|
||||
@ -2,8 +2,8 @@ tickettreap
|
||||
===========
|
||||
|
||||
[](https://travis-ci.org/decred/dcrd)
|
||||
[](http://copyfree.org)
|
||||
[](http://godoc.org/github.com/decred/dcrd/blockchain/stake/internal/tickettreap)
|
||||
[](http://copyfree.org)
|
||||
[](https://godoc.org/github.com/decred/dcrd/blockchain/stake/internal/tickettreap)
|
||||
|
||||
Package tickettreap implements a treap data structure that is used to hold
|
||||
live tickets ordered by their key along with some associated data using a
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
Certgen
|
||||
======
|
||||
|
||||
[](https://travis-ci.org/decred/dcrd)
|
||||
[](http://copyfree.org)
|
||||
[](http://godoc.org/github.com/decred/dcrd/certgen)
|
||||
[](https://travis-ci.org/decred/dcrd)
|
||||
[](http://copyfree.org)
|
||||
[](https://godoc.org/github.com/decred/dcrd/certgen)
|
||||
|
||||
## Overview
|
||||
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
chaincfg
|
||||
========
|
||||
|
||||
[](https://travis-ci.org/decred/dcrd)
|
||||
[](http://copyfree.org)
|
||||
[](http://godoc.org/github.com/decred/dcrd/chaincfg)
|
||||
[](https://travis-ci.org/decred/dcrd)
|
||||
[](http://copyfree.org)
|
||||
[](https://godoc.org/github.com/decred/dcrd/chaincfg)
|
||||
|
||||
Package chaincfg defines chain configuration parameters for the four standard
|
||||
Decred networks.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
chainhash
|
||||
=========
|
||||
|
||||
[](https://travis-ci.org/decred/dcrd)
|
||||
[](http://copyfree.org)
|
||||
[](http://godoc.org/github.com/decred/dcrd/chaincfg/chainhash)
|
||||
[](https://travis-ci.org/decred/dcrd)
|
||||
[](http://copyfree.org)
|
||||
[](https://godoc.org/github.com/decred/dcrd/chaincfg/chainhash)
|
||||
|
||||
chainhash provides a generic hash type and associated functions that allows the
|
||||
specific hash algorithm to be abstracted.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
connmgr
|
||||
=======
|
||||
|
||||
[](https://travis-ci.org/decred/dcrd)
|
||||
[](http://copyfree.org)
|
||||
[](http://godoc.org/github.com/decred/dcrd/connmgr)
|
||||
[](https://travis-ci.org/decred/dcrd)
|
||||
[](http://copyfree.org)
|
||||
[](https://godoc.org/github.com/decred/dcrd/connmgr)
|
||||
|
||||
Package connmgr implements a generic Decred network connection manager.
|
||||
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
database
|
||||
========
|
||||
|
||||
[](https://travis-ci.org/decred/dcrd)
|
||||
[](http://copyfree.org)
|
||||
[](http://godoc.org/github.com/decred/dcrd/database)
|
||||
[](https://travis-ci.org/decred/dcrd)
|
||||
[](http://copyfree.org)
|
||||
[](https://godoc.org/github.com/decred/dcrd/database)
|
||||
|
||||
Package database provides a block and metadata storage database.
|
||||
|
||||
@ -42,11 +42,11 @@ $ go get github.com/decred/dcrd/database2
|
||||
|
||||
## Examples
|
||||
|
||||
* [Basic Usage Example](http://godoc.org/github.com/decred/dcrd/database2#example-package--BasicUsage)
|
||||
* [Basic Usage Example](https://godoc.org/github.com/decred/dcrd/database2#example-package--BasicUsage)
|
||||
Demonstrates creating a new database and using a managed read-write
|
||||
transaction to store and retrieve metadata.
|
||||
|
||||
* [Block Storage and Retrieval Example](http://godoc.org/github.com/decred/dcrd/database2#example-package--BlockStorageAndRetrieval)
|
||||
* [Block Storage and Retrieval Example](https://godoc.org/github.com/decred/dcrd/database2#example-package--BlockStorageAndRetrieval)
|
||||
Demonstrates creating a new database, using a managed read-write transaction
|
||||
to store a block, and then using a managed read-only transaction to fetch the
|
||||
block.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
ffldb
|
||||
=====
|
||||
|
||||
[](https://travis-ci.org/decred/dcrd)
|
||||
[](http://copyfree.org)
|
||||
[](http://godoc.org/github.com/decred/dcrd/database/ffldb)
|
||||
[](https://travis-ci.org/decred/dcrd)
|
||||
[](http://copyfree.org)
|
||||
[](https://godoc.org/github.com/decred/dcrd/database/ffldb)
|
||||
|
||||
Package ffldb implements a driver for the database package that uses leveldb for
|
||||
the backing metadata and flat files for block storage.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
treap
|
||||
=====
|
||||
|
||||
[](https://travis-ci.org/decred/dcrd)
|
||||
[](http://copyfree.org)
|
||||
[](http://godoc.org/github.com/decred/dcrd/database/internal/treap)
|
||||
[](https://travis-ci.org/decred/dcrd)
|
||||
[](http://copyfree.org)
|
||||
[](https://godoc.org/github.com/decred/dcrd/database/internal/treap)
|
||||
|
||||
Package treap implements a treap data structure that is used to hold ordered
|
||||
key/value pairs using a combination of binary search tree and heap semantics.
|
||||
|
||||
@ -19,7 +19,7 @@ import (
|
||||
|
||||
func TestGolden(t *testing.T) {
|
||||
// sign.input.gz is a selection of test cases from
|
||||
// http://ed25519.cr.yp.to/python/sign.input
|
||||
// https://ed25519.cr.yp.to/python/sign.input
|
||||
testDataZ, err := os.Open("testdata/sign.input.gz")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
secp256k1
|
||||
=====
|
||||
|
||||
[](https://travis-ci.org/decred/dcrd)
|
||||
[](http://copyfree.org)
|
||||
[](http://godoc.org/github.com/decred/dcrd/dcrec/secp256k1)
|
||||
[](https://travis-ci.org/decred/dcrd)
|
||||
[](http://copyfree.org)
|
||||
[](https://godoc.org/github.com/decred/dcrd/dcrec/secp256k1)
|
||||
|
||||
Package dcrec implements elliptic curve cryptography needed for working with
|
||||
Decred (secp256k1 only for now). It is designed so that it may be used with the
|
||||
@ -25,19 +25,19 @@ $ go get -u github.com/decred/dcrd/dcrec
|
||||
|
||||
## Examples
|
||||
|
||||
* [Sign Message](http://godoc.org/github.com/decred/dcrd/dcrec#example-package--SignMessage)
|
||||
* [Sign Message](https://godoc.org/github.com/decred/dcrd/dcrec#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/decred/dcrd/dcrec#example-package--VerifySignature)
|
||||
* [Verify Signature](https://godoc.org/github.com/decred/dcrd/dcrec#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](http://godoc.org/github.com/decred/dcrd/dcrec#example-package--EncryptMessage)
|
||||
* [Encryption](https://godoc.org/github.com/decred/dcrd/dcrec#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](http://godoc.org/github.com/decred/dcrdy/dcrec#example-package--DecryptMessage)
|
||||
* [Decryption](https://godoc.org/github.com/decred/dcrdy/dcrec#example-package--DecryptMessage)
|
||||
Demonstrates decrypting a message using a private key that is first parsed
|
||||
from raw bytes.
|
||||
|
||||
|
||||
@ -9,7 +9,7 @@ package secp256k1
|
||||
|
||||
// References:
|
||||
// [SECG]: Recommended Elliptic Curve Domain Parameters
|
||||
// http://www.secg.org/sec2-v2.pdf
|
||||
// https://www.secg.org/sec2-v2.pdf
|
||||
//
|
||||
// [GECC]: Guide to Elliptic Curve Cryptography (Hankerson, Menezes, Vanstone)
|
||||
|
||||
@ -130,7 +130,7 @@ func (curve *KoblitzCurve) addZ1AndZ2EqualsOne(x1, y1, z1, x2, y2, x3, y3, z3 *f
|
||||
// To compute the point addition efficiently, this implementation splits
|
||||
// the equation into intermediate elements which are used to minimize
|
||||
// the number of field multiplications using the method shown at:
|
||||
// http://hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-0.html#addition-mmadd-2007-bl
|
||||
// https://hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-0.html#addition-mmadd-2007-bl
|
||||
//
|
||||
// In particular it performs the calculations using the following:
|
||||
// H = X2-X1, HH = H^2, I = 4*HH, J = H*I, r = 2*(Y2-Y1), V = X1*I
|
||||
@ -197,7 +197,7 @@ func (curve *KoblitzCurve) addZ1EqualsZ2(x1, y1, z1, x2, y2, x3, y3, z3 *fieldVa
|
||||
// the equation into intermediate elements which are used to minimize
|
||||
// the number of field multiplications using a slightly modified version
|
||||
// of the method shown at:
|
||||
// http://hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-0.html#addition-mmadd-2007-bl
|
||||
// https://hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-0.html#addition-mmadd-2007-bl
|
||||
//
|
||||
// In particular it performs the calculations using the following:
|
||||
// A = X2-X1, B = A^2, C=Y2-Y1, D = C^2, E = X1*B, F = X2*B
|
||||
@ -265,7 +265,7 @@ func (curve *KoblitzCurve) addZ2EqualsOne(x1, y1, z1, x2, y2, x3, y3, z3 *fieldV
|
||||
// To compute the point addition efficiently, this implementation splits
|
||||
// the equation into intermediate elements which are used to minimize
|
||||
// the number of field multiplications using the method shown at:
|
||||
// http://hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-0.html#addition-madd-2007-bl
|
||||
// https://hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-0.html#addition-madd-2007-bl
|
||||
//
|
||||
// In particular it performs the calculations using the following:
|
||||
// Z1Z1 = Z1^2, U2 = X2*Z1Z1, S2 = Y2*Z1*Z1Z1, H = U2-X1, HH = H^2,
|
||||
@ -341,7 +341,7 @@ func (curve *KoblitzCurve) addGeneric(x1, y1, z1, x2, y2, z2, x3, y3, z3 *fieldV
|
||||
// To compute the point addition efficiently, this implementation splits
|
||||
// the equation into intermediate elements which are used to minimize
|
||||
// the number of field multiplications using the method shown at:
|
||||
// http://hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-0.html#addition-add-2007-bl
|
||||
// https://hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-0.html#addition-add-2007-bl
|
||||
//
|
||||
// In particular it performs the calculations using the following:
|
||||
// Z1Z1 = Z1^2, Z2Z2 = Z2^2, U1 = X1*Z2Z2, U2 = X2*Z1Z1, S1 = Y1*Z2*Z2Z2
|
||||
@ -497,7 +497,7 @@ func (curve *KoblitzCurve) doubleZ1EqualsOne(x1, y1, x3, y3, z3 *fieldVal) {
|
||||
// implementation at the time this was written.
|
||||
//
|
||||
// This uses a slightly modified version of the method shown at:
|
||||
// http://hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-0.html#doubling-mdbl-2007-bl
|
||||
// https://hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-0.html#doubling-mdbl-2007-bl
|
||||
//
|
||||
// In particular it performs the calculations using the following:
|
||||
// A = X1^2, B = Y1^2, C = B^2, D = 2*((X1+B)^2-A-C)
|
||||
@ -546,7 +546,7 @@ func (curve *KoblitzCurve) doubleGeneric(x1, y1, z1, x3, y3, z3 *fieldVal) {
|
||||
// implementation at the time this was written.
|
||||
//
|
||||
// This uses a slightly modified version of the method shown at:
|
||||
// http://hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-0.html#doubling-dbl-2009-l
|
||||
// https://hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-0.html#doubling-dbl-2009-l
|
||||
//
|
||||
// In particular it performs the calculations using the following:
|
||||
// A = X1^2, B = Y1^2, C = B^2, D = 2*((X1+B)^2-A-C)
|
||||
|
||||
@ -8,7 +8,7 @@ Package secp256k1 implements support for the elliptic curves needed for Decred.
|
||||
|
||||
Decred uses elliptic curve cryptography using koblitz curves
|
||||
(specifically secp256k1) for cryptographic functions. See
|
||||
http://www.secg.org/sec2-v2.pdf for details on the standard.
|
||||
https://www.secg.org/sec2-v2.pdf for details on the standard.
|
||||
|
||||
This package provides the data structures and functions implementing the
|
||||
crypto/elliptic Curve interface in order to permit using these curves
|
||||
|
||||
@ -2,8 +2,8 @@ dcrjson
|
||||
=======
|
||||
|
||||
[](https://travis-ci.org/decred/dcrd)
|
||||
[](http://copyfree.org)
|
||||
[](http://godoc.org/github.com/decred/dcrd/dcrjson)
|
||||
[](http://copyfree.org)
|
||||
[](https://godoc.org/github.com/decred/dcrd/dcrjson)
|
||||
|
||||
Package dcrjson implements concrete types for marshalling to and from the
|
||||
decred JSON-RPC API. A comprehensive suite of tests is provided to ensure
|
||||
@ -30,17 +30,17 @@ $ go get -u github.com/decred/dcrd/dcrjson
|
||||
|
||||
## Examples
|
||||
|
||||
* [Marshal Command](http://godoc.org/github.com/decred/dcrd/dcrjson#example-MarshalCmd)
|
||||
* [Marshal Command](https://godoc.org/github.com/decred/dcrd/dcrjson#example-MarshalCmd)
|
||||
Demonstrates how to create and marshal a command into a JSON-RPC request.
|
||||
|
||||
* [Unmarshal Command](http://godoc.org/github.com/decred/dcrd/dcrjson#example-UnmarshalCmd)
|
||||
* [Unmarshal Command](https://godoc.org/github.com/decred/dcrd/dcrjson#example-UnmarshalCmd)
|
||||
Demonstrates how to unmarshal a JSON-RPC request and then unmarshal the
|
||||
concrete request into a concrete command.
|
||||
|
||||
* [Marshal Response](http://godoc.org/github.com/decred/dcrd/dcrjson#example-MarshalResponse)
|
||||
* [Marshal Response](https://godoc.org/github.com/decred/dcrd/dcrjson#example-MarshalResponse)
|
||||
Demonstrates how to marshal a JSON-RPC response.
|
||||
|
||||
* [Unmarshal Response](http://godoc.org/github.com/decred/dcrd/dcrjson#example-package--UnmarshalResponse)
|
||||
* [Unmarshal Response](https://godoc.org/github.com/decred/dcrd/dcrjson#example-package--UnmarshalResponse)
|
||||
Demonstrates how to unmarshal a JSON-RPC response and then unmarshal the
|
||||
result field in the response to a concrete type.
|
||||
|
||||
|
||||
@ -2,9 +2,9 @@ dcrutil
|
||||
=======
|
||||
|
||||
|
||||
[](https://travis-ci.org/decred/dcrd)
|
||||
[](http://copyfree.org)
|
||||
[](http://godoc.org/github.com/decred/dcrd/dcrutil)
|
||||
[](https://travis-ci.org/decred/dcrd)
|
||||
[](http://copyfree.org)
|
||||
[](https://godoc.org/github.com/decred/dcrd/dcrutil)
|
||||
|
||||
Package dcrutil provides decred-specific convenience functions and types.
|
||||
A comprehensive suite of tests is provided to ensure proper functionality.
|
||||
|
||||
@ -73,7 +73,7 @@ func round(f float64) Amount {
|
||||
// NewAmount is for specifically for converting DCR to Atoms (atomic units).
|
||||
// For creating a new Amount with an int64 value which denotes a quantity of
|
||||
// Atoms, do a simple type conversion from type int64 to Amount.
|
||||
// See GoDoc for example: http://godoc.org/github.com/decred/dcrd/dcrutil#example-Amount
|
||||
// See GoDoc for example: https://godoc.org/github.com/decred/dcrd/dcrutil#example-Amount
|
||||
func NewAmount(f float64) (Amount, error) {
|
||||
// The amount is only considered invalid if it cannot be represented
|
||||
// as an integer type. This may happen if f is NaN or +-Infinity.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
txsort
|
||||
======
|
||||
|
||||
[](https://travis-ci.org/decred/dcrd)
|
||||
[](http://copyfree.org)
|
||||
[](http://godoc.org/github.com/decred/dcrd/dcrutil/txsort)
|
||||
[](https://travis-ci.org/decred/dcrd)
|
||||
[](http://copyfree.org)
|
||||
[](https://godoc.org/github.com/decred/dcrd/dcrutil/txsort)
|
||||
|
||||
Package txsort provides stable transaction sorting.
|
||||
|
||||
|
||||
@ -20,7 +20,7 @@
|
||||
|
||||
### 1. About
|
||||
|
||||
dcrd is a full node Decred implementation written in [Go](http://golang.org),
|
||||
dcrd is a full node Decred implementation written in [Go](https://golang.org),
|
||||
and is licensed under the [copyfree](http://www.copyfree.org) ISC License.
|
||||
|
||||
This software is currently under active development. It is extremely stable and
|
||||
@ -48,7 +48,7 @@ The first step is to install dcrd. The installation instructions can be found
|
||||
|
||||
**2.2 Configuration**<br />
|
||||
|
||||
dcrd has a number of [configuration](http://godoc.org/github.com/decred/dcrd)
|
||||
dcrd has a number of [configuration](https://godoc.org/github.com/decred/dcrd)
|
||||
options, which can be viewed by running: `$ dcrd --help`.
|
||||
|
||||
<a name="DcrctlConfig" />
|
||||
@ -56,7 +56,7 @@ options, which can be viewed by running: `$ dcrd --help`.
|
||||
**2.3 Controlling and Querying dcrd via dcrctl**<br />
|
||||
|
||||
dcrctl is a command line utility that can be used to both control and query dcrd
|
||||
via [RPC](http://www.wikipedia.org/wiki/Remote_procedure_call). dcrd does
|
||||
via [RPC](https://www.wikipedia.org/wiki/Remote_procedure_call). dcrd does
|
||||
**not** enable its RPC server by default; You must configure at minimum both an
|
||||
RPC username and password or both an RPC limited username and password:
|
||||
|
||||
@ -100,7 +100,7 @@ miningaddr=DsExampleAddress2
|
||||
|
||||
**2. Add dcrd's RPC TLS certificate to system Certificate Authority list.**<br />
|
||||
|
||||
`cgminer` uses [curl](http://curl.haxx.se/) to fetch data from the RPC server.
|
||||
`cgminer` uses [curl](https://curl.haxx.se/) to fetch data from the RPC server.
|
||||
Since curl validates the certificate by default, we must install the `dcrd` RPC
|
||||
certificate into the default system Certificate Authority list.
|
||||
|
||||
@ -228,4 +228,4 @@ The following versioned modules are provided by dcrd repository:
|
||||
The following diagram shows an overview of the hierarchy for the modules
|
||||
provided by the dcrd repository.
|
||||
|
||||

|
||||

|
||||
|
||||
@ -1,11 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
|
||||
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
"https://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<!-- Generated by graphviz version 2.38.0 (20140413.2041)
|
||||
-->
|
||||
<!-- Title: %3 Pages: 1 -->
|
||||
<svg width="696pt" height="792pt"
|
||||
viewBox="0.00 0.00 695.50 792.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
viewBox="0.00 0.00 695.50 792.00" xmlns="https://www.w3.org/2000/svg" xmlns:xlink="https://www.w3.org/1999/xlink">
|
||||
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 788)">
|
||||
<title>%3</title>
|
||||
<polygon fill="white" stroke="#000000" points="-4,4 -4,-788 691.5,-788 691.5,4 -4,4"/>
|
||||
|
||||
|
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
@ -69,7 +69,7 @@ security and performance implications.
|
||||
|
||||
### 3. Required Reading
|
||||
|
||||
- [Effective Go](http://golang.org/doc/effective_go.html) - The entire dcrd
|
||||
- [Effective Go](https://golang.org/doc/effective_go.html) - The entire dcrd
|
||||
suite follows the guidelines in this document. For your code to be accepted,
|
||||
it must follow the guidelines therein.
|
||||
- [Original Satoshi Whitepaper](https://bitcoin.org/bitcoin.pdf) - This is the
|
||||
@ -125,7 +125,7 @@ code works correctly when it is fed correct data as well as incorrect data
|
||||
|
||||
Go provides an excellent test framework that makes writing test code and
|
||||
checking coverage statistics straight forward. For more information about the
|
||||
test coverage tools, see the [Golang cover blog post](http://blog.golang.org/cover).
|
||||
test coverage tools, see the [Golang cover blog post](https://blog.golang.org/cover).
|
||||
|
||||
A simple way to check the coverage of a package and all its functions is to call
|
||||
```
|
||||
@ -147,7 +147,7 @@ A quick summary of test practices follows:
|
||||
- At a minimum every function must be commented with its intended purpose and
|
||||
any assumptions that it makes
|
||||
- Function comments must always begin with the name of the function per
|
||||
[Effective Go](http://golang.org/doc/effective_go.html).
|
||||
[Effective Go](https://golang.org/doc/effective_go.html).
|
||||
- Function comments should be complete sentences since they allow a wide
|
||||
variety of automated presentations such as [godoc.org](https://godoc.org).
|
||||
- The general rule of thumb is to look at it as if you were completely
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
==1. Overview==
|
||||
|
||||
dcrd provides a [http://json-rpc.org/wiki/specification JSON-RPC] API that is
|
||||
dcrd provides a [https://json-rpc.org/wiki/specification JSON-RPC] API that is
|
||||
fully compatible with the original bitcoind/bitcoin-qt. There are a few key
|
||||
differences between dcrd and bitcoind as far as how RPCs are serviced:
|
||||
|
||||
|
||||
@ -2,9 +2,9 @@ fees
|
||||
=======
|
||||
|
||||
|
||||
[](https://travis-ci.org/decred/dcrd)
|
||||
[](http://copyfree.org)
|
||||
[](http://godoc.org/github.com/decred/dcrd/fees)
|
||||
[](https://travis-ci.org/decred/dcrd)
|
||||
[](http://copyfree.org)
|
||||
[](https://godoc.org/github.com/decred/dcrd/fees)
|
||||
|
||||
Package fees provides decred-specific methods for tracking and estimating fee
|
||||
rates for new transactions to be mined into the network. Fee rate estimation has
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
gcs
|
||||
==========
|
||||
|
||||
[](http://godoc.org/github.com/decred/dcrd/gcs)
|
||||
[](https://godoc.org/github.com/decred/dcrd/gcs)
|
||||
|
||||
Package gcs provides an API for building and using a Golomb-coded set filter
|
||||
similar to that described [here](http://giovanni.bajo.it/post/47119962313/golomb-coded-sets-smaller-than-bloom-filters).
|
||||
similar to that described [here](https://giovanni.bajo.it/post/47119962313/golomb-coded-sets-smaller-than-bloom-filters).
|
||||
|
||||
A comprehensive suite of tests is provided to ensure proper functionality.
|
||||
A comprehensive suite of tests is provided to ensure proper functionality.
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
blockcf
|
||||
==========
|
||||
|
||||
[](http://godoc.org/github.com/decred/dcrd/gcs/blockcf)
|
||||
[](https://godoc.org/github.com/decred/dcrd/gcs/blockcf)
|
||||
|
||||
Package blockcf provides functions to build committed filters from blocks.
|
||||
Unlike the gcs package, which is a general implementation of golomb coded sets,
|
||||
this package is tailored for specific filter creation for Decred blocks.
|
||||
this package is tailored for specific filter creation for Decred blocks.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
hdkeychain
|
||||
==========
|
||||
|
||||
[](https://travis-ci.org/decred/dcrd)
|
||||
[](http://copyfree.org)
|
||||
[](http://godoc.org/github.com/decred/dcrd/hdkeychain)
|
||||
[](https://travis-ci.org/decred/dcrd)
|
||||
[](http://copyfree.org)
|
||||
[](https://godoc.org/github.com/decred/dcrd/hdkeychain)
|
||||
|
||||
Package hdkeychain provides an API for Decred hierarchical deterministic
|
||||
extended keys (based on BIP0032).
|
||||
@ -43,13 +43,13 @@ $ go get -u github.com/decred/dcrd/hdkeychain
|
||||
|
||||
## Examples
|
||||
|
||||
* [NewMaster Example](http://godoc.org/github.com/decred/dcrd/hdkeychain#example-package--NewMaster)
|
||||
* [NewMaster Example](https://godoc.org/github.com/decred/dcrd/hdkeychain#example-package--NewMaster)
|
||||
Demonstrates how to generate a cryptographically random seed then use it to
|
||||
create a new master node (extended key).
|
||||
* [Default Wallet Layout Example](http://godoc.org/github.com/decred/dcrd/hdkeychain#example-package--DefaultWalletLayout)
|
||||
* [Default Wallet Layout Example](https://godoc.org/github.com/decred/dcrd/hdkeychain#example-package--DefaultWalletLayout)
|
||||
Demonstrates the default hierarchical deterministic wallet layout as described
|
||||
in BIP0032.
|
||||
* [Audits Use Case Example](http://godoc.org/github.com/decred/dcrd/hdkeychain#example-package--Audits)
|
||||
* [Audits Use Case Example](https://godoc.org/github.com/decred/dcrd/hdkeychain#example-package--Audits)
|
||||
Demonstrates the audits use case in BIP0032.
|
||||
|
||||
## License
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
limits
|
||||
======
|
||||
|
||||
[](https://travis-ci.org/decred/dcrd)
|
||||
[](http://copyfree.org)
|
||||
[](http://godoc.org/github.com/decred/dcrd/internal/limits)
|
||||
[](https://travis-ci.org/decred/dcrd)
|
||||
[](http://copyfree.org)
|
||||
[](https://godoc.org/github.com/decred/dcrd/internal/limits)
|
||||
|
||||
Package limits allows some process limits to be raised.
|
||||
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
version
|
||||
=======
|
||||
|
||||
[](https://travis-ci.org/decred/dcrd)
|
||||
[](http://copyfree.org)
|
||||
[](http://godoc.org/github.com/decred/dcrd/internal/version)
|
||||
[](https://travis-ci.org/decred/dcrd)
|
||||
[](http://copyfree.org)
|
||||
[](https://godoc.org/github.com/decred/dcrd/internal/version)
|
||||
|
||||
Package version provides a single location to house the version information for
|
||||
dcrd and other utilities provided in the same repository.
|
||||
|
||||
@ -24,7 +24,7 @@ const (
|
||||
)
|
||||
|
||||
// These constants define the application version and follow the semantic
|
||||
// versioning 2.0.0 spec (http://semver.org/).
|
||||
// versioning 2.0.0 spec (https://semver.org/).
|
||||
const (
|
||||
Major uint = 1
|
||||
Minor uint = 5
|
||||
@ -48,7 +48,7 @@ var (
|
||||
)
|
||||
|
||||
// String returns the application version as a properly formed string per the
|
||||
// semantic versioning 2.0.0 spec (http://semver.org/).
|
||||
// semantic versioning 2.0.0 spec (https://semver.org/).
|
||||
func String() string {
|
||||
// Start with the major, minor, and patch versions.
|
||||
version := fmt.Sprintf("%d.%d.%d", Major, Minor, Patch)
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
lru
|
||||
===
|
||||
|
||||
[](https://travis-ci.org/decred/dcrd)
|
||||
[](http://copyfree.org)
|
||||
[](http://godoc.org/github.com/decred/dcrd/lru)
|
||||
[](https://travis-ci.org/decred/dcrd)
|
||||
[](http://copyfree.org)
|
||||
[](https://godoc.org/github.com/decred/dcrd/lru)
|
||||
|
||||
Package lru implements a generic least-recently-used cache with near O(1) perf.
|
||||
|
||||
@ -31,7 +31,7 @@ $ go get -u github.com/decred/dcrd/lru
|
||||
|
||||
## Examples
|
||||
|
||||
* [Basic Usage](http://godoc.org/github.com/decred/dcrd/lru#example-package--BasicUsage)
|
||||
* [Basic Usage](https://godoc.org/github.com/decred/dcrd/lru#example-package--BasicUsage)
|
||||
Demonstrates creating a new cache instance, inserting items into the cache,
|
||||
causing an eviction of the least-recently-used item, and removing an item.
|
||||
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
mempool
|
||||
=======
|
||||
|
||||
[](https://travis-ci.org/decred/dcrd)
|
||||
[](http://copyfree.org)
|
||||
[](http://godoc.org/github.com/decred/dcrd/mempool)
|
||||
[](https://travis-ci.org/decred/dcrd)
|
||||
[](http://copyfree.org)
|
||||
[](https://godoc.org/github.com/decred/dcrd/mempool)
|
||||
|
||||
Package mempool provides a policy-enforced pool of unmined Decred transactions.
|
||||
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
mining
|
||||
======
|
||||
|
||||
[](https://travis-ci.org/decred/dcrd)
|
||||
[](http://copyfree.org)
|
||||
[](http://godoc.org/github.com/decred/dcrd/mining)
|
||||
[](https://travis-ci.org/decred/dcrd)
|
||||
[](http://copyfree.org)
|
||||
[](https://godoc.org/github.com/decred/dcrd/mining)
|
||||
|
||||
## Overview
|
||||
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
peer
|
||||
====
|
||||
|
||||
[](https://travis-ci.org/decred/dcrd)
|
||||
[](http://copyfree.org)
|
||||
[](http://godoc.org/github.com/decred/dcrd/peer)
|
||||
[](https://travis-ci.org/decred/dcrd)
|
||||
[](http://copyfree.org)
|
||||
[](https://godoc.org/github.com/decred/dcrd/peer)
|
||||
|
||||
Package peer provides a common base for creating and managing bitcoin network
|
||||
peers.
|
||||
|
||||
@ -1,12 +1,12 @@
|
||||
rpcclient
|
||||
=========
|
||||
|
||||
[](https://travis-ci.org/decred/dcrd)
|
||||
[](http://copyfree.org)
|
||||
[](http://godoc.org/github.com/decred/dcrd/rpcclient)
|
||||
[](https://travis-ci.org/decred/dcrd)
|
||||
[](http://copyfree.org)
|
||||
[](https://godoc.org/github.com/decred/dcrd/rpcclient)
|
||||
|
||||
rpcclient implements a Websocket-enabled Decred JSON-RPC client package written
|
||||
in [Go](http://golang.org/). It provides a robust and easy to use client for
|
||||
in [Go](https://golang.org/). It provides a robust and easy to use client for
|
||||
interfacing with a Decred RPC server that uses a dcrd compatible Decred
|
||||
JSON-RPC API.
|
||||
|
||||
@ -18,7 +18,7 @@ implement and the API is not stable yet.
|
||||
|
||||
## Documentation
|
||||
|
||||
* [API Reference](http://godoc.org/github.com/decred/dcrd/rpcclient)
|
||||
* [API Reference](https://godoc.org/github.com/decred/dcrd/rpcclient)
|
||||
* [dcrd Websockets Example](https://github.com/decred/dcrd/tree/master/rpcclient/examples/dcrdwebsockets)
|
||||
Connects to a dcrd RPC server using TLS-secured websockets, registers for
|
||||
block connected and block disconnected notifications, and gets the current
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
rpctest
|
||||
=======
|
||||
|
||||
[](https://travis-ci.org/decred/dcrd)
|
||||
[](http://copyfree.org)
|
||||
[](http://godoc.org/github.com/decred/dcrd/rpctest)
|
||||
[](https://travis-ci.org/decred/dcrd)
|
||||
[](http://copyfree.org)
|
||||
[](https://godoc.org/github.com/decred/dcrd/rpctest)
|
||||
|
||||
Package rpctest provides a dcrd-specific RPC testing harness crafting and
|
||||
executing integration tests by driving a `dcrd` instance via the `RPC`
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
sampleconfig
|
||||
============
|
||||
|
||||
[](https://travis-ci.org/decred/dcrd)
|
||||
[](http://copyfree.org)
|
||||
[](http://godoc.org/github.com/decred/dcrd/sampleconfig)
|
||||
[](https://travis-ci.org/decred/dcrd)
|
||||
[](http://copyfree.org)
|
||||
[](https://godoc.org/github.com/decred/dcrd/sampleconfig)
|
||||
|
||||
Package sampleconfig provides a single constant that contains the contents of
|
||||
the sample configuration file for dcrd. This is provided for tools that perform
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
txscript
|
||||
========
|
||||
|
||||
[](https://travis-ci.org/decred/dcrd)
|
||||
[](http://copyfree.org)
|
||||
[](http://godoc.org/github.com/decred/dcrd/txscript)
|
||||
[](https://travis-ci.org/decred/dcrd)
|
||||
[](http://copyfree.org)
|
||||
[](https://godoc.org/github.com/decred/dcrd/txscript)
|
||||
|
||||
Package txscript implements the Decred transaction script language. There is
|
||||
a comprehensive test suite.
|
||||
@ -25,18 +25,18 @@ $ go get -u github.com/decred/dcrd/txscript
|
||||
|
||||
## Examples
|
||||
|
||||
* [Standard Pay-to-pubkey-hash Script](http://godoc.org/github.com/decred/dcrd/txscript#example-PayToAddrScript)
|
||||
* [Standard Pay-to-pubkey-hash Script](https://godoc.org/github.com/decred/dcrd/txscript#example-PayToAddrScript)
|
||||
Demonstrates creating a script which pays to a Decred address. It also
|
||||
prints the created script hex and uses the DisasmString function to display
|
||||
the disassembled script.
|
||||
|
||||
* [Extracting Details from Standard Scripts](http://godoc.org/github.com/decred/dcrd/txscript#example-ExtractPkScriptAddrs)
|
||||
* [Extracting Details from Standard Scripts](https://godoc.org/github.com/decred/dcrd/txscript#example-ExtractPkScriptAddrs)
|
||||
Demonstrates extracting information from a standard public key script.
|
||||
|
||||
* [Manually Signing a Transaction Output](http://godoc.org/github.com/decred/dcrd/txscript#example-SignTxOutput)
|
||||
* [Manually Signing a Transaction Output](https://godoc.org/github.com/decred/dcrd/txscript#example-SignTxOutput)
|
||||
Demonstrates manually creating and signing a redeem transaction.
|
||||
|
||||
* [Counting Opcodes in Scripts](http://godoc.org/github.com/decred/dcrd/txscript#example-ScriptTokenizer)
|
||||
* [Counting Opcodes in Scripts](https://godoc.org/github.com/decred/dcrd/txscript#example-ScriptTokenizer)
|
||||
Demonstrates creating a script tokenizer instance and using it to count the
|
||||
number of opcodes a script contains.
|
||||
|
||||
|
||||
2
upnp.go
2
upnp.go
@ -108,7 +108,7 @@ func Discover() (nat NAT, err error) {
|
||||
continue
|
||||
}
|
||||
// HTTP header field names are case-insensitive.
|
||||
// http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.2
|
||||
// https://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.2
|
||||
locString := "\r\nlocation: "
|
||||
locIndex := strings.Index(strings.ToLower(answer), locString)
|
||||
if locIndex < 0 {
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
wire
|
||||
====
|
||||
|
||||
[](https://travis-ci.org/decred/dcrd)
|
||||
[](http://copyfree.org)
|
||||
[](http://godoc.org/github.com/decred/dcrd/wire)
|
||||
[](https://travis-ci.org/decred/dcrd)
|
||||
[](http://copyfree.org)
|
||||
[](https://godoc.org/github.com/decred/dcrd/wire)
|
||||
|
||||
Package wire implements the Decred wire protocol. A comprehensive suite of
|
||||
tests with 100% test coverage is provided to ensure proper functionality.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user