forward

package
v0.0.0-...-bcfd2cf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 10, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package forward heuristic It checks the transactions that come after the one in which we want to find the change address.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Forward

type Forward struct {
	Kv    kv.DB
	Cache *cache.Cache
}

Forward heuristic

func (*Forward) ChangeOutput

func (h *Forward) 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 (*Forward) Vulnerable

func (h *Forward) Vulnerable(transaction *tx.Tx) bool

Vulnerable returns true if the transaction has a privacy vulnerability due to optimal change heuristic

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL