utils

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2019 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IntToHex

func IntToHex(n *big.Int) string

func UIntToHex

func UIntToHex(n uint64) string

Types

type Utils

type Utils struct {
	// contains filtered or unexported fields
}

Utils - The Utils Module

func NewUtils

func NewUtils(provider providers.ProviderInterface) *Utils

NewUtils - Utils Module constructor to set the default provider

func (*Utils) Sha3

func (utils *Utils) Sha3(data types.ComplexString) (string, error)

Sha3 - Returns Keccak-256 (not the standardized SHA3-256) of the given data.

  • DATA - the data to convert into a SHA3 hash

Returns:

  • DATA - The SHA3 result of the given string.

Jump to

Keyboard shortcuts

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