Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/libauth/src/lib/transaction/fixtures/templates/2-of-3.json

An ultra-lightweight, zero-dependency JavaScript library for Bitcoin Cash, Bitcoin, and Bitauth applications.
Latest
File
{ "name": "2-of-3 Multisig", "$schema": "https://libauth.org/schemas/wallet-template-v0.schema.json", "entities": { "signer_1": { "name": "Signer 1", "scripts": ["lock", "1_and_2", "1_and_3"], "variables": { "key1": { "type": "HdKey" } } }, "signer_2": { "name": "Signer 2", "scripts": ["lock", "1_and_2", "2_and_3"], "variables": { "key2": { "type": "HdKey" } } }, "signer_3": { "name": "Signer 3", "scripts": ["lock", "1_and_3", "2_and_3"], "variables": { "key3": { "type": "HdKey" } } } }, "scripts": { "1_and_2": { "name": "Cosigner 1 & 2", "script": "OP_0\n<key1.signature.all_outputs>\n<key2.signature.all_outputs>", "unlocks": "lock" }, "1_and_3": { "name": "Cosigner 1 & 3", "script": "OP_0\n<key1.signature.all_outputs>\n<key3.signature.all_outputs>", "unlocks": "lock" }, "2_and_3": { "name": "Cosigner 2 & 3", "script": "OP_0\n<key2.signature.all_outputs>\n<key3.signature.all_outputs>", "unlocks": "lock" }, "lock": { "lockingType": "p2sh20", "name": "2-of-3 Vault", "script": "OP_2\n<key1.public_key>\n<key2.public_key>\n<key3.public_key>\nOP_3\nOP_CHECKMULTISIG" } }, "supported": ["BCH_2021_05", "BCH_2022_05"], "version": 0}