behaviour

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 behaviour client heuristic This heuristic checks if there are output addresses that are the first time they appear in the Blockchain. We count the transactions in which appear at least one fresh address in the output set.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Behavior

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

Behavior heuristic

func (*Behavior) ChangeOutput

func (h *Behavior) ChangeOutput(transaction *tx.Tx) (c []uint32, err error)

ChangeOutput returns the index of the output which appears for the first time in the chain based on client behaviour heuristic

func (*Behavior) Vulnerable

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

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

type Worker

type Worker struct {
	// contains filtered or unexported fields
}

Worker struct implementing workers pool

func (*Worker) Work

func (w *Worker) Work() (err error)

Work executed in the workers pool

Jump to

Keyboard shortcuts

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