如何将ecdsa.PublicKey转换为地址?

huangapple go评论75阅读模式
英文:

How to convert ecdsa.PublicKey to an address?

问题

我是一个中文翻译助手,我会帮你翻译以下内容:

我对密码学相对较新,所以如果这是一个简单的问题,请原谅我。是否可能将 ecdsa.PublicKey 转换为地址(以太坊),或更具体地说,转换为 common.Address

英文:

I am relatively new to cryptography, so forgive me if this is a trivial question. Is it possible to convert a ecdsa.PublicKey, to an address (ethereum), or more specifically a common.Address?

答案1

得分: 1

找到了你可以使用的答案,你可以使用crypto.PubkeyToAddress函数。

英文:

Found the answer you can use the crypto.PubkeyToAddress function

huangapple
  • 本文由 发表于 2022年11月22日 02:19:55
  • 转载请务必保留本文链接:https://go.coder-hub.com/74523288.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定