payment

package
v0.4.12 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2017 License: ISC Imports: 12 Imported by: 0

Documentation

Overview

control of payment verification

Index

Constants

View Source
const (
	ReceiptLength         = 64 // hex bytes
	NonceLength           = 64 // hex bytes
	RequiredConfirmations = 3
)

maximum values

Variables

This section is empty.

Functions

func Finalise added in v0.2.0

func Finalise()

stop all payment handlers

func GetPayments added in v0.3.5

func GetPayments(ownerData []byte, previousTransfer *transactionrecord.BitmarkTransfer) []*transactionrecord.Payment

get payment record from a specific block given the blocks 8 byte big endian key

func Initialise added in v0.2.0

func Initialise(configuration *Configuration) error

create the tables

Types

type Configuration added in v0.2.0

type Configuration struct {
	UseDiscovery bool                    `libucl:"use_discovery" hcl:"use_discovery" json:"use_discovery"`
	Discovery    *DiscoveryConfiguration `libucl:"discovery" hcl:"discovery" json:"discovery"`
	Bitcoin      *bitcoin.Configuration  `libucl:"bitcoin" hcl:"bitcoin" json:"bitcoin"`
	Litecoin     *litecoin.Configuration `libucl:"litecoin" hcl:"litecoin" json:"litecoin"`
}

configuration for each sub-module

type DiscoveryConfiguration added in v0.4.12

type DiscoveryConfiguration struct {
	ReqEndpoint string `libucl:"req_endpoint" hcl:"req_endpoint" json:"req_endpoint"`
	SubEndpoint string `libucl:"sub_endpoint" hcl:"sub_endpoint" json:"sub_endpoint"`
}

Directories

Path Synopsis
Detect payment records in the Bitcoin Block Chain Payments are indicated by OP_RETURN embedded data, this is compressed to fit it within the 80 byte Bitcoin limit.
Detect payment records in the Bitcoin Block Chain Payments are indicated by OP_RETURN embedded data, this is compressed to fit it within the 80 byte Bitcoin limit.
client side of discovery proxy
client side of discovery proxy
Detect payment records in the Litecoin Block Chain Payments are indicated by OP_RETURN embedded data, this is compressed to fit it within the 80 byte Litecoin limit.
Detect payment records in the Litecoin Block Chain Payments are indicated by OP_RETURN embedded data, this is compressed to fit it within the 80 byte Litecoin limit.

Jump to

Keyboard shortcuts

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