util

package
v0.0.0-...-308b279 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

README

go-eth-util

Go library providing utilities for Ethereum 2.

** Please note that this library uses standards that are not yet final, and as such may result in changes that alter public and private keys. Do not use this library for production use just yet **

Table of Contents

Install

go-eth2-util is a standard Go module which can be installed with:

go get github.com/alex-wallet/go-eth-wallet/util

Usage

Please read the Go documentation for this library.

Maintainers

Alex Necsoiu: @alex-necsoiu.

Contribute

Contributions welcome. Please check out the issues.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeriveChildSK

func DeriveChildSK(parentSK *big.Int, index uint32) (*big.Int, error)

DeriveChildSK derives the child secret key from a parent key. Follows ERC-2333.

func DeriveMasterSK

func DeriveMasterSK(seed []byte) (*big.Int, error)

DeriveMasterSK derives the master secret key from a seed. Follows ERC-2333.

func Keccak256

func Keccak256(data ...[]byte) []byte

Keccak256 creates a Keccak256 hash of the supplied data.

func PrivateKeyFromSeedAndPath

func PrivateKeyFromSeedAndPath(seed []byte, path string) (*e2types.BLSPrivateKey, error)

PrivateKeyFromSeedAndPath generates a private key given a seed and a path. Follows ERC-2334.

func SHA256

func SHA256(data ...[]byte) []byte

SHA256 creates an SHA-256 hash of the supplied data.

func SHA3256

func SHA3256(data ...[]byte) []byte

SHA3256 creates an SHA3-256 hash of the supplied data.

Types

This section is empty.

Jump to

Keyboard shortcuts

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