make a simple eth raw tx and self sign without web3
I only need generate a eth raw transaction and self sign , web3.py is bloated.
I generate lots of eth address using python like this:
def create_wallet():
keccak = sha3.keccak_256()
private_key = SigningKey.generate(curve=SECP256k1)
public_key = private_key.get_verifying_key().to_string()
keccak.update(public_key)
address = '0x%s' % keccak.hexdigest()[24:]
private_key = binascii.hexlify(private_key.to_string())
public_key = binascii.hexlify(public_key)
return {
"private_key": private_key.decode(),
"public_key": public_key.decode(),
"address": address
}
now i want make a simple raw transaction and sign it