You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/sdk/primitives/other.md
+35-1Lines changed: 35 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,41 @@ title: Other Primitives
5
5
6
6
# Other Primitives
7
7
8
-
The SDK includes several additional primitives beyond the core CAT, NFT, and Vault types. This page provides brief overviews of these primitives.
8
+
The SDK includes several additional primitives beyond the core CAT and NFT types. This page provides brief overviews of these primitives.
9
+
10
+
## Vault
11
+
12
+
Vaults provide multi-signature custody for Chia assets. They enable secure storage patterns where multiple parties or conditions must be satisfied to spend funds.
13
+
14
+
```rust
15
+
usechia_wallet_sdk::prelude::*;
16
+
17
+
// Vault structure
18
+
letvault=Vault {
19
+
coin,
20
+
launcher_id,
21
+
proof,
22
+
custody_hash, // Defines spending requirements
23
+
};
24
+
25
+
// Spend a vault with a MIPS (Multi-Input Puzzle Spend)
0 commit comments