Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 874 Bytes

README.md

File metadata and controls

30 lines (20 loc) · 874 Bytes

Stellar Identicon Generator (Golang)

The go implementation of SEP-0033, which you can use to generate identicons for Stellar wallets - unique icons, generated based on the wallet public key.

You can also access online API through Stellar Identicon Generate API (source).

Install

go get -u github.com/StellarCN/stellar-identicon-go

Usage

import identicon "github.com/StellarCN/stellar-identicon-go"

func main() {
publicKey := "GAQL4ZLRIJBGSCXE6XC4XPZ5W6FGCJHXLAMB4M7ZQ52HFPDTL6GSVP4W"
img, err := identicon.Generate(publicKey, identicon.Width, identicon.Height)
if err != nil {

}

Thanks

This project was inspired by LOBSTR.