Documentation
¶
Overview ¶
Package class heuristic This heuristic is the address type heuristic and it checks if the all the inputs are of the same type and then try to locate only one output that is of the same type. Again, we just need to check a simple condition.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddressType ¶
AddressType heuristic
func (*AddressType) ChangeOutput ¶
func (h *AddressType) ChangeOutput(transaction *tx.Tx) (c []uint32, err error)
ChangeOutput returns the index of the output which address type corresponds to input addresses type
func (*AddressType) Vulnerable ¶
func (h *AddressType) 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.