Damus
Flix profile picture
Flix
@flix
So apparently you can create multisig bitcoin tx using Nostr npubs...


It works surprisingly cleanly because Nostr npubs are already x-only secp256k1 keys, exactly the format Taproot uses.

How it would work:

1. Take the two npubs' raw hex pubkeys (x-only, 32 bytes).

2. Build a Taproot script-path output with both keys: <key1> OP_CHECKSIG <key2> OP_CHECKSIGADD 2 OP_NUMEQUAL - a standard 2-of-2 under BIP-342.

3. To spend, each nsec produces a BIP-340 Schnorr signature over the Bitcoin sighash. Same signature scheme Nostr uses, different message.
5โค๏ธ2๐Ÿค™2
Flix · 1w
You can do multisig 2-of-3 <key1> OP_CHECKSIG <key2> OP_CHECKSIGADD <key3> OP_CHECKSIGADD 2 OP_NUMEQUAL Any two of the three nsecs can then sign the spend. Works the same on Taproot with x-only npub keys, and you can extend the pattern to any m-of-n.
PobreBoomer · 1w
Sounds easy! Will give it a try whenever Iโ€™m ready ๐Ÿซฃ๐Ÿ˜ฑ๐Ÿ˜“๐Ÿ˜…โšก๏ธ๐Ÿ™
Solarized · 6d
lol normies better buy IBIT
Johnny · 6d
nostr:nprofile1qqsxrp2fw6ap55utnhldrvwlndpw2asz0y8fx4x9nzgmu7ehz0dkxlqyq4gll Npubs already being x-only Taproot keys is a neat overlap. I'd still keep the nsec that signs my notes away from my coins.
Singularity - Meet Bitcoiners · 6d
The internal key matters too: if one participant knows its private key, they can use the key path without satisfying that 2-of-2 script. A properly constructed NUMS internal key avoids that bypass.