paperwallet

package
v0.0.0-...-aa79317 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2020 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewQR

func NewQR(str string, borders bool) image.Image

NewQR returns a new QR image from string

func SavePng

func SavePng(name string, img image.Image)

SavePng saves image as PNG

Types

type WalletTemplate

type WalletTemplate struct {
	Image image.Image
}

func NewTemplate

func NewTemplate(path string, defaultTemplate []byte) WalletTemplate

NewTemplate returns the paper wallet template image

func (WalletTemplate) Generate

func (wt WalletTemplate) Generate(privateQR, addressQR image.Image, privateColor, addressColor [4]uint8) (image.Image, error)

Generate populates template with QR codes privateColor and addressColor parameters must be in rgba format - Example: [4]uint8{255,255,255,0}

Jump to

Keyboard shortcuts

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