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 ¶
- Variables
- func DeriveAccount(accountIndex uint) accounts.Account
- func DeterministicP2PPrivKeyByIndex(idx int64) crypto.PrivKey
- func GenerateAndStoreDevnetGuardianKey(filename string) error
- func GetDevnetIndex() (int, error)
- func InsecureDeterministicEcdsaKeyByIndex(c elliptic.Curve, idx uint64) *ecdsa.PrivateKey
- func Wallet() *hdwallet.Wallet
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 DeterministicP2PPrivKeyByIndex ¶
DeterministicP2PPrivKeyByIndex generates a deterministic libp2p crypto.PrivateKey from a given index.
func GenerateAndStoreDevnetGuardianKey ¶
GenerateAndStoreDevnetGuardianKey returns a deterministic testnet key.
func GetDevnetIndex ¶
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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.