btcaddress

package
v0.0.0-...-326d8f6 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2020 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package btcaddress makes sure the Bitcoin address for the Ripple donations account on Keybase is up-to-date. This shows a default key if the system is not set up, or otherwise refreshes the address every 30 minutes (using redis to hold the cache). The wallet with the name "Ripple" will be used for getting the address.

Index

Constants

View Source
const AccountName = "Ripple"

AccountName is the name the account on coinbase must have to be considered as the actual account.

View Source
const DefaultAddress = "1CKGzZqrVwKoXwHEWpTobWqqtkYuqoFNro"

DefaultAddress is the address used if the package is not set up to refresh from coinbase.

Variables

View Source
var (
	Redis     *redis.Client
	APIKey    string
	APISecret string
)

Configuration variables.

Functions

func Get

func Get() string

Get retrieves the Bitcoin address, using the following methods:

First the address is requested from Redis, and if the key is available from redis then that is used.

After that, the key is requested from coinbase, and the account ID is found if not already saved in Redis.

Types

This section is empty.

Jump to

Keyboard shortcuts

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