The core protocol of WoopChain
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
woop/client/utils.go

12 lines
353 B

package client
import "github.com/simple-rules/harmony-benchmark/crypto/pki"
var AddressToIntPriKeyMap map[[20]byte]int // For convenience, we use int as the secret seed for generating private key
func init() {
AddressToIntPriKeyMap := make(map[[20]byte]int)
for i := 0; i < 10000; i++ {
AddressToIntPriKeyMap[pki.GetAddressFromInt(i)] = i
}
}