cmd on Nostr: Fun fact. Nostr and Taproot both use Schnorr for producing signatures. This means ...
Fun fact. Nostr and Taproot both use Schnorr for producing signatures. This means that technically you can sign taproot transactions *and* nostr events with the same pair of keys
The difficulty however, is that taproot transactions use key tweaking, meaning a taproot UTXO on the blockchain is showing you a tweaked pubkey, not the original pubkey.
Even a script-less taproot transaction uses a tweaked pubkey, making cross-verification difficult. Also, Bitcoin Core is not very friendly towards exporting child keys and revealing tweaks.
This script takes the original pubkey and recreates the tweak in order to verify that a taproot pubkey and nostr pubkey are in fact the same key.
The next step is to build a signing extension, so a nostr user can prove they own a particular UTXO (and whatever may be inside of it 😎).
Would you like to know more?
Published at
2023-02-12 22:41:53Event JSON
{
"id": "eccf69fd11e0c9fcb68e28d587e765829858186a49406e90e807b0875d5b0173",
"pubkey": "4229c21f0101abc3ba45233e176e975fa9e671bb18a6722bdf7726ba25445ff9",
"created_at": 1676238113,
"kind": 1,
"tags": [],
"content": "Fun fact. Nostr and Taproot both use Schnorr for producing signatures. This means that technically you can sign taproot transactions *and* nostr events with the same pair of keys\n\nThe difficulty however, is that taproot transactions use key tweaking, meaning a taproot UTXO on the blockchain is showing you a tweaked pubkey, not the original pubkey.\n\nEven a script-less taproot transaction uses a tweaked pubkey, making cross-verification difficult. Also, Bitcoin Core is not very friendly towards exporting child keys and revealing tweaks.\n\nThis script takes the original pubkey and recreates the tweak in order to verify that a taproot pubkey and nostr pubkey are in fact the same key. \n\nThe next step is to build a signing extension, so a nostr user can prove they own a particular UTXO (and whatever may be inside of it 😎).\n\nWould you like to know more?\n\nhttps://nostr.build/i/nostr.build_d44bd293547d416ff2f079989066bee55c4696a2d5e6c9bbe33c3ec9c0a5fbc0.png",
"sig": "32f7ed9409b4f3f4660a578b12c3a4709d9917a4c334a1cba8d14d290070960c6abb34c21b6ca5d056be94d6b82fb2eb857692a372396c49f5dbf8199ae51516"
}