What is the proper length and format for public keys on NEAR

﹥>﹥吖頭↗ 提交于 2021-01-27 11:47:00

问题


Some public keys that are generated from storage devices are 44 characters after the ed25519: prefix (52 total) and some are 43 characters (51 total). Is this permissable?

Is the ed25519: prefix necessary to include whenever using a public key?


回答1:


ed25519: prefix is usually optional and is applied by default.

It is ok for keys to have different length. A key is basically a large binary number encoded using base58 with leading zeros being dropped.

Basically the same thing happening as if we had keys encoded in decimal and one key would be 999 while another key is 1001.



来源:https://stackoverflow.com/questions/64325321/what-is-the-proper-length-and-format-for-public-keys-on-near

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!