power

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: 1 Imported by: 0

Documentation

Overview

Package power of ten heuristic It checks if in the outputs set there are addresses that have an amount in Satoshi that is a power of ten. We count the trans action in which this type of output is found.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PowerOfTen

type PowerOfTen struct{}

PowerOfTen heuristic

func (*PowerOfTen) ChangeOutput

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

ChangeOutput returns the index of the output which value is power of ten, if there is any and only one

func (*PowerOfTen) Vulnerable

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

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

Jump to

Keyboard shortcuts

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