eip55

package module
v0.0.0-...-83d5e9e Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: MIT Imports: 2 Imported by: 1

README

go-eip55

Package eip55 provides an implementation of EIP-55: "Mixed-case checksum address encoding", for the Go programming language.

EIP-55 is also known as ERC-55.

Documention

Online documentation, which includes examples, can be found at: http://godoc.org/github.com/reiver/go-eip55

GoDoc

Example

Here is an example:

import "github.com/reiver/go-eip55"

// ...

var address [20]byte = // ...

var addressHex string = eip55.Encode(address)

Here is another example:


import "github.com/reiver/go-eip55"

// ...

if eip55.IsValid(addressHex) {
	// ...
}

Import

To import package eip55 use import code like the follownig:

import "github.com/reiver/go-eip55"

Installation

To install package eip55 do the following:

GOPROXY=direct go get https://github.com/reiver/go-eip55

Author

Package eip55 was written by Charles Iliya Krempeaux

Documentation

Index

Constants

View Source
const ArrayLength = 20

Variables

This section is empty.

Functions

func Encode

func Encode(src [ArrayLength]byte) string

func IsValid

func IsValid(value string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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