devnet

package
v0.0.0-...-43fc98a Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

package devnet contains constants and helper functions for the local deterministic devnet. See "Devnet addresses" in DEVELOP.md. Created by setup scripts/migrations.

Index

Constants

This section is empty.

Variables

View Source
var (
	// Contracts (deployed by "truffle migrate" on a deterministic devnet)
	GanacheWormholeContractAddress = common.HexToAddress("0xC89Ce4735882C9F0f0FE26686c53074E09B0D550")
)

Functions

func DeriveAccount

func DeriveAccount(accountIndex uint) accounts.Account

func DeterministicP2PPrivKeyByIndex

func DeterministicP2PPrivKeyByIndex(idx int64) crypto.PrivKey

DeterministicP2PPrivKeyByIndex generates a deterministic libp2p crypto.PrivateKey from a given index.

func GenerateAndStoreDevnetGuardianKey

func GenerateAndStoreDevnetGuardianKey(filename string) error

GenerateAndStoreDevnetGuardianKey returns a deterministic testnet key.

func GetDevnetIndex

func GetDevnetIndex() (int, error)

GetDevnetIndex returns the current host's devnet index (i.e. 0 for guardian-0).

func InsecureDeterministicEcdsaKeyByIndex

func InsecureDeterministicEcdsaKeyByIndex(c elliptic.Curve, idx uint64) *ecdsa.PrivateKey

InsecureDeterministicEcdsaKeyByIndex generates a deterministic ecdsa.PrivateKey from a given index.

func Wallet

func Wallet() *hdwallet.Wallet

Types

This section is empty.

Jump to

Keyboard shortcuts

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