common

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Overview

common package provides utility functions to generate random keys and random directory

Source Files

Each file contains following contents

  • utils.go : Provides utility functions to generate a random directory and random keys

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateKeys

func GenerateKeys(num int) (keys []*ecdsa.PrivateKey, nodekeys []string, addrs []common.Address)

func GenerateKeysFromMnemonic

func GenerateKeysFromMnemonic(num int, mnemonic, path string) (keys []*ecdsa.PrivateKey, nodekeys []string, addrs []common.Address)

func GenerateKip113Init

func GenerateKip113Init(privKeys []*ecdsa.PrivateKey, owner common.Address) system.AllocKip113Init

func GenerateRandomDir

func GenerateRandomDir() (string, error)

func LoadNodekey

func LoadNodekey(dir string) (keys []*ecdsa.PrivateKey, nodekeys []string, addrs []common.Address)

func RandomBytes

func RandomBytes(len int) ([]byte, error)

func RandomHex

func RandomHex() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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