func (w *Wallet) GetNewAddress(shardID uint32) (address.Address, error) {
	priv, err := secp256k1.GeneratePrivateKey()
	if err != nil {
		return "", err
	}

	pub := priv.PubKey()

	addr := address.PubkeyToAddress(pub, shardID)

	w.Keystore[addr] = &KeyInfo{

		Address:      addr,
		CurrentNonce: 0,
	}

	return addr, nil
}
// GetNewAddress gets a new address and adds it to the keystore.
GetNewAddress gets a new address and adds it to the keystore.
// GetNewAddress gets a new address and adds it to the keystore .
func (w *Wallet) GetNewAddress(shardID uint32) (address.Address, error) {
	priv, err := secp256k1.GeneratePrivateKey()
	if err != nil {
		return "", err
	}
	pub := priv.PubKey()
	addr := address.PubkeyToAddress(pub, shardID)
	w.Keystore[addr] = &KeyInfo{
		Address:      addr,
		CurrentNonce: 0,
	}
	return addr, nil
}
func ( w * Wallet ) GetNewAddress ( shardID uint32 ) ( address . Address , error ) { priv , err := secp256k1 . GeneratePrivateKey ( ) if err != nil { return " " , err } pub := priv . PubKey ( ) addr := address . PubkeyToAddress ( pub , shardID ) w . Keystore [ addr ] = & KeyInfo { Address : addr , CurrentNonce : 0 , } return addr , nil }
GetNewAddress gets a new address and adds it to the keystore.
GetNewAddress gets a new address and adds it to the keystore .