如何在python中找到以太坊地址

时间:2020-04-19 10:59:27

标签: python ethereum

我想将私钥转换为地址:

from functools import partial
from tkinter import *


root = Tk()

e = Entry()
e.grid(row=0, column=0, columnspan=3)


def button_click(num):
    e.insert(0, num)


for i in range(1, 4):
    for j in range(0, 3):
        k = int(((i - 1) * 3) + (j + 1))
        button = Button(root, text=k, padx=25, pady=25, command=partial(button_click, k))
        button.grid(row=i, column=j)

但是我的代码显示了这个地址错误:

privatekey is 0000000000000000000000000000000000000000000000000000000000000001 corect adrress: 0x7E5F4552091A69125d5DfCb7b8C2659029395Bdf

0x717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf6

请帮助我获取正确的地址

0 个答案:

没有答案