mirror of
https://github.com/FlipsideCrypto/dcrd.git
synced 2026-02-06 10:56:47 +00:00
This adds a tested example for address decoding and removes the previous non-functioning version of it from the pacakge documentation. The previous example appers to have been missed when porting the code and was no longer correct for Decred.
32 lines
1.2 KiB
Go
32 lines
1.2 KiB
Go
// Copyright (c) 2013-2014 The btcsuite developers
|
|
// Copyright (c) 2015-2016 The Decred developers
|
|
// Use of this source code is governed by an ISC
|
|
// license that can be found in the LICENSE file.
|
|
|
|
/*
|
|
Package dcrutil provides decred-specific convenience functions and types.
|
|
|
|
Block Overview
|
|
|
|
A Block defines a Decred block that provides easier and more efficient
|
|
manipulation of raw wire protocol blocks. It also memoizes hashes for the
|
|
block and its transactions on their first access so subsequent accesses don't
|
|
have to repeat the relatively expensive hashing operations.
|
|
|
|
Tx Overview
|
|
|
|
A Tx defines a Decred transaction that provides more efficient manipulation of
|
|
raw wire protocol transactions. It memoizes the hash for the transaction on its
|
|
first access so subsequent accesses don't have to repeat the relatively
|
|
expensive hashing operations.
|
|
|
|
Address Overview
|
|
|
|
The Address interface provides an abstraction for a Decred address. While the
|
|
most common type is a pay-to-pubkey-hash, Decred already supports others and
|
|
may well support more in the future. This package currently provides
|
|
implementations for the pay-to-pubkey, pay-to-pubkey-hash, and
|
|
pay-to-script-hash address types.
|
|
*/
|
|
package dcrutil
|