Skip to content

Commit 0e05931

Browse files
committed
docs(tx): add new operation: multisig
1 parent a2a76ca commit 0e05931

File tree

1 file changed

+37
-8
lines changed

1 file changed

+37
-8
lines changed

Diff for: transaction-operations.md

+37-8
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,48 @@
11
# Transaction Operations
22

3-
### Technical
3+
## Technical
44

55
- Transaction
66
- Payment Request
77

8-
### User Directed
8+
## Human Centered
9+
10+
### Primitives
911

1012
- Send
1113
- Receive
12-
- Transaction
13-
- Payment
14-
- Gift
15-
- Donation
16-
- Buy
17-
- Payment Request
14+
15+
### Payments
16+
17+
#### Outgoing
18+
19+
- Gift
20+
- Donation
21+
- Purchase
22+
- Savings
1823
- Subscription
24+
- Rebalance/Top Up Account (?)
25+
26+
#### Incomming
27+
28+
- Payment Request
29+
- Invoice
30+
31+
### Money Management
32+
33+
- MultiSig
34+
35+
> first compile the miniscript to obtain bitcoin script, like the output you pasted -- this goes into the [redeem script][^redeemscripts_1] hash the redeem script create a P2SH output specifying that hash (3 address or long bc1 address)
36+
>
37+
> if key_1 and key_2 are the same, miniscript will compile the same redeemscript
38+
>
39+
> once you have a p2sh address, you just make a normal payment to it - some txn must include an output with the corresponding scriptPubKey
40+
>
41+
> and once that's confirmed, there's money in the multisig which can be spent by providing a scriptSig that has the signatures as well as the redeemscript
42+
>
43+
> usually a multisig output will look a bit different though, using OP_CHECKMULTISIG
44+
>
45+
> then a list of m signatures and n keys are given, and 2 numeric parameters, m and n
46+
47+
[^redeemscripts_1]: https://bitcoin.stackexchange.com/a/52272 "Where are P2SH full redeem scripts stored?"
1948

0 commit comments

Comments
 (0)