baddress

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const Region = "us-east-1"

Region is the AWS region to use

View Source
const Table = "bad-addresses"

Table is the table name for the bad address dynamodb table

Variables

This section is empty.

Functions

func Add

func Add(ddb *dynamodb.DynamoDB, addr BadAddress, verbose bool) error

Add a bad address to the DB

func Check

func Check(ddb *dynamodb.DynamoDB, addr address.Address) (bool, error)

Check whether an address exists in the bad address DB

func Generate

func Generate(ddb *dynamodb.DynamoDB, verbose bool) error

Generate a bunch of addresses known to be fishy, and submit each of them to the bad address DB.

func Remove

func Remove(ddb *dynamodb.DynamoDB, addr address.Address, verbose bool) error

Remove a bad address from the DB

Types

type BadAddress

type BadAddress struct {
	Address address.Address `json:"address" arg:"positional,required" help:"an address users should never use"`
	Path    string          `json:"derivation-path" arg:"-p" help:"derivation path for the bad address"`
	Reason  string          `json:"reason" arg:"-r" help:"why the user should not use this address"`
}

A BadAddress is one users should not use

Jump to

Keyboard shortcuts

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