func (w *Wallet) ImportPrivKey(privBytes []byte, shardID uint32) address.Address {
	pair := keystore.KeypairFromBytes(privBytes)
	addr := pair.GetAddress(shardID)

	w.Keystore[addr] = &KeyInfo{
		keypair:      *pair,
		Address:      addr,
		CurrentNonce: 0,
	}

	return addr
}
// ImportPrivKey imports a private key.
ImportPrivKey imports a private key.
// ImportPrivKey imports a private key .
func (w *Wallet) ImportPrivKey(privBytes []byte, shardID uint32) address.Address {
	pair := keystore.KeypairFromBytes(privBytes)
	addr := pair.GetAddress(shardID)
	w.Keystore[addr] = &KeyInfo{
		keypair:      *pair,
		Address:      addr,
		CurrentNonce: 0,
	}
	return addr
}
func ( w * Wallet ) ImportPrivKey ( privBytes [ ] byte , shardID uint32 ) address . Address { pair := keystore . KeypairFromBytes ( privBytes ) addr := pair . GetAddress ( shardID ) w . Keystore [ addr ] = & KeyInfo { keypair : * pair , Address : addr , CurrentNonce : 0 , } return addr }
ImportPrivKey imports a private key.
ImportPrivKey imports a private key .