Documentation ¶
Index ¶
- Constants
- func Add(ddb *dynamodb.DynamoDB, addr BadAddress, verbose bool) error
- func Check(ddb *dynamodb.DynamoDB, addr address.Address) (bool, error)
- func Generate(ddb *dynamodb.DynamoDB, verbose bool) error
- func Remove(ddb *dynamodb.DynamoDB, addr address.Address, verbose bool) error
- type BadAddress
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
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
Click to show internal directories.
Click to hide internal directories.