Avatar
S. Ota
8721cdf007e798f80549a4bf174b973dc388e01952f0a952f5473c2cf84a7f60
A programmer. An author of nostr-keyx. Interests: Reinforcement Learning, Natural Language Processing and Artificial General Intelligence.

エンジニアの人には、Nostr のアカウントは SSH 公開鍵認証と同じで、NIP-07 は ssh-agent みたいなもの。で大体済むような気がする。

Replying to Avatar yto

Kiseppe - Kindle Price Chart – 🦊 Firefox (ja) 向け拡張機能を入手

https://addons.mozilla.org/ja/firefox/addon/kiseppe-price-chart-kindle/

アマゾンのキンドル書籍ページに価格推移グラフを直接表示するやつ。

Firefox でも審査通って一般公開されました!よ!いえい!

Chrome 版使ってみました。とても便利ですね!

直近で買った本がちょくちょく半額で売ってることがわかってショックを受けましたが、今後はうまく利用できそうです🤙

Twitter のセキュリティキー認証が FIDO U2F を使っていて、その FIDO U2F による2要素認証の情報が、 ykman で調べてもどこにも保存されていないのが気になって調べてみた結果、どこにも保存されていないことが判明。

個々の YubuKey デバイス固有の鍵が製造時にオンチップで生成されていて、その鍵と入力を合わせて決定論的に鍵ペアを生成して、必要になった時に同じ鍵ペアを生成できるようにしているらしい。

https://www.reddit.com/r/yubikey/comments/10onj2k/i_have_my_keys_added_as_security_keys_on_many/

https://www.yubico.com/blog/yubicos-u2f-key-wrapping/

なお FIDO2 (WebAuthn, パスキー認証) はまた別で、YubiKey 内部のストレージに秘密鍵を保存していて、以下コマンドで確認可能。

ykman fido credentials list

Nostr のイベントは明日の夜からか。

コスタリカの朝9時は日本の夜12時。

https://nostrica.com/

https://iris.to/nostrica.com

YubiKey の設定方法を書きました。

とりあえず、SSH の公開鍵認証と GitHub コミットの署名まで。

- Generate gpg keys

- Backup the keys

- Use YubiKey for SSH

- Use YubiKey for signing GitHub commits

- Use YubiKey for 2 Factor Authentication (2FA) (e.g. Google, Amazon, Twitter, etc.) (WIP)

- Use YubiKey for Passkey Authentication (Yahoo! JAPAN) (WIP)

- Use YubiKey for Nostr (WIP)

https://github.com/susumuota/yubikey-setup

GPG の鍵を RSA 4096 bit から楕円曲線に変えようと思って調べた。結論: Ed25519 で良さそう。

https://soatok.blog/2022/05/19/guidance-for-choosing-an-elliptic-curve-signature-algorithm-in-2022/

ESP32 で Nostr の署名(schnorr_sign) が 64 msec, 検証(schnorr_verify)が 128 msec だった。これは普通に使えそう。

https://github.com/micro-bitcoin/uBitcoin

I added wss://relay.damus.io/ from Popular relays list but I already have wss://relay.damus.io in my relay settings.

I hope they should be canonical at least inside Iris. 🤙

https://github.com/lnbits/nostr-signing-device#build-instructions

これ試してみようと思ったら

> Open this wallet.ino file in the Arduino IDE

このwallet.inoがどこにも無いように見えるんだけども…

自分もよくわからなかったのでとりあえず、元のライブラリを見たらそちらはしっかりしていそうでした。

https://github.com/micro-bitcoin/uBitcoin

Nostr 署名デバイスやってる人いた。 ESP32 で出来るみたい。果たして何秒くらいで署名できるのかな。

https://github.com/lnbits/nostr-signing-device

https://github.com/fiatjaf/horse

Web Serial API でブラウザからシリアルポートにアクセス出来るらしい。何でもアリだな Chrome。

https://developer.mozilla.org/en-US/docs/Web/API/Web_Serial_API

Apple のキーチェーンに対応する予定みたいなので、自分はこれが対応されたらちゃんと使おうかと思っています。(それまでは2ndアカウントで)

https://github.com/ursuscamp/nostore/issues/10

Iris 、コンソール開いて `localStorage.clear()` してタブを立ち上げ直すとしばらく回復するけど、そのうちまたおかしくなる。