identicon

package
v0.0.0-...-d59d07f Latest Latest
Warning

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

Go to latest
Published: May 7, 2020 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToBase64Img

func ToBase64Img(address common.Address) (b string)

Types

type Renderer

type Renderer interface {
	// Render generates a PNG from data
	Render(data []byte) []byte
}

Renderer allows rendering of data as a PNG identicon

func New5x5

func New5x5(key []byte) Renderer

New5x5 creates a new 5-by-5 identicon renderer using 'key' as the hash salt

func New7x7

func New7x7(key []byte) Renderer

New7x7 creates a new 7-by-7 identicon renderer using 'key' as the hash salt

Jump to

Keyboard shortcuts

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