lbcutil/doc.go

34 lines
1,000 B
Go
Raw Normal View History

2014-01-09 06:46:05 +01:00
// Copyright (c) 2013-2014 Conformal Systems LLC.
2013-05-29 00:32:35 +02:00
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.
/*
Package btcutil provides bitcoin-specific convenience functions and types.
Block Overview
A Block defines a bitcoin 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 bitcoin 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.
Base58 Usage
To decode a base58 string:
rawData := btcutil.Base58Decode(encodedData)
Similarly, to encode the same data:
encodedData := btcutil.Base58Encode(rawData)
2013-05-29 00:32:35 +02:00
*/
package btcutil