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

x/libauth/src/lib/transaction/transaction-e2e.spec.helper.ts>p2pkhJson

An ultra-lightweight, zero-dependency JavaScript library for Bitcoin Cash, Bitcoin, and Bitauth applications.
Latest
variable p2pkhJson
Re-export
import { p2pkhJson } from "https://deno.land/x/libauth@v2.0.0-alpha.9/src/lib/transaction/transaction-e2e.spec.helper.ts";

type

{ $schema: "https://libauth.org/schemas/wallet-template-v0.schema.json"; description: "A standard single-factor wallet template that uses Pay-to-Public-Key-Hash (P2PKH), the most common authentication scheme in use on the network.\n\nThis P2PKH template uses BCH Schnorr signatures, reducing the size of transactions. Because the template uses a Hierarchical Deterministic (HD) key, it also supports watch-only clients."; entities: { owner: { description: "The individual who can spend from this wallet."; name: "Owner"; scripts: unknown[]; variables: { key: { description: "The private key that controls this wallet."; name: "Key"; type: "HdKey"; }; }; }; }; name: "Single Signature (P2PKH)"; scripts: { lock: { lockingType: "standard"; name: "P2PKH Lock"; script: "OP_DUP\nOP_HASH160 <$(<key.public_key> OP_HASH160\n)> OP_EQUALVERIFY\nOP_CHECKSIG"; }; unlock: { name: "Unlock"; script: "<key.schnorr_signature.all_outputs>\n<key.public_key>"; unlocks: "lock"; }; }; supported: unknown[]; version: 0; }