bchwallet: github.com/gcash/bchwallet/internal/helpers Index | Files

package helpers

import "github.com/gcash/bchwallet/internal/helpers"

Package helpers provides convenience functions to simplify wallet code. This package is intended for internal wallet use only.


Package Files


func SumOutputSerializeSizes Uses

func SumOutputSerializeSizes(outputs []*wire.TxOut) (serializeSize int)

SumOutputSerializeSizes sums up the serialized size of the supplied outputs.

func SumOutputValues Uses

func SumOutputValues(outputs []*wire.TxOut) (totalOutput bchutil.Amount)

SumOutputValues sums up the list of TxOuts and returns an Amount.

Package helpers imports 2 packages (graph) and is imported by 4 packages. Updated 2018-10-08. Refresh now. Tools for package owners.