key_derivation

package
v0.0.0-...-453597d Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2023 License: CC0-1.0 Imports: 10 Imported by: 0

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 MnemonicAndPathToKey

func MnemonicAndPathToKey(seed []byte, path string) (*bls.PrivateKey, error)

func PrivateKeyFromSeedAndPath

func PrivateKeyFromSeedAndPath(seed []byte, path string) (*bls.PrivateKey, 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