mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-03-30 15:08:33 +00:00

* [NOD-517] Remove copyright notices from all doc.go. * [NOD-517] Updated the root doc.go. * [NOD-517] Remove all cov_report.sh and test_coverage.txt. * [NOD-517] Make all doc.go use the same style of comment. * [NOD-517] Update dagconfig doc.go. * [NOD-517] Update blockdag doc.go. * [NOD-517] Update doc.go in connmgr. * [NOD-517] Update doc.go in fullblocktests. * [NOD-517] Update doc.go in database. * [NOD-517] Update doc.go in ecc. * [NOD-517] Update doc.go in rpctest. * [NOD-517] Removed superfluous license in logs. * [NOD-517] Update doc.go in mempool. * [NOD-517] Updated doc.go in peer. * [NOD-517] Update doc.go in rpcclient. * [NOD-517] Update doc.go in txscript. * [NOD-517] Update doc.go in util. * [NOD-517] Update doc.go in base58. * [NOD-517] Update doc.go in bech32. * [NOD-517] Update doc.go in txsort. * [NOD-517] Update doc.go in wire. * [NOD-517] Fix indentation. * [NOD-517] Add a copyright notice to the main doc.go. * [NOD-517] Add Conformal to the license notices. * [NOD-517] Remove superfluous language from a doc. * [NOD-517] Fix bad example.
17 lines
652 B
Go
17 lines
652 B
Go
/*
|
|
Package txsort provides the transaction sorting compatible with BIP 69.
|
|
|
|
Overview
|
|
|
|
BIP 69 defines a standard lexicographical sort order of transaction inputs and
|
|
outputs. This is useful to standardize transactions for faster multi-party
|
|
agreement as well as preventing information leaks in a single-party use case.
|
|
|
|
The BIP goes into more detail, but for a quick and simplistic overview, the
|
|
order for inputs is defined as first sorting on the previous output hash and
|
|
then on the index as a tie breaker. The order for outputs is defined as first
|
|
sorting on the amount and then on the raw public key script bytes as a tie
|
|
breaker.
|
|
*/
|
|
package txsort
|