Documentation
¶
Overview ¶
Package reuse heuristic This heuristic just checks if an address that appears in the input set, appears also in the output set, we just need to count the number of transactions in which this condition is satisfied. This happens when a user uses the same address to pay and to recollect the exceeding amount of a transaction.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddressReuse ¶
AddressReuse heuristic
func (*AddressReuse) ChangeOutput ¶
func (h *AddressReuse) ChangeOutput(transaction *tx.Tx) (c []uint32, err error)
ChangeOutput returns the index of the output which appears both in inputs and in outputs based on address reuse heuristic
func (*AddressReuse) Vulnerable ¶
func (h *AddressReuse) Vulnerable(transaction *tx.Tx) bool
Vulnerable returns true if the transaction has a privacy vulnerability due to optimal change heuristic
Click to show internal directories.
Click to hide internal directories.