ryanwold.net

A civic-minded citizen seeking the singularity

Back to Entries

Writing bitcoin applications

idea
Date: 2021-06-07
Tags: bitcoin programming event driven development

Sign up for an account. <- User provides a signature An account object is stored on chain.

(My app can also read the Tx on chain, and do something with it)


Ways to use bitcoin

Spend to your key. Spend to any key.

Create a Tx. Assign 1 or more Outputs, which can be a Tx ID or bitcoin script - plus some number of Satoshis.


Each Tx has an ID And an value and maybe some other attributes or behaviors


SIGHASHALL SIGHASHONE SIGHASHANYONECANPAY SIGHASHNONE

How to "sign" inputs


Example:

Script to Public Key:

Based on an existing UTXO to address X with in the output script position _2. Any given transaction has one or more outputs, and these outputs are stored in sequential order, and thus can be referenced by that position.

A new transaction created, payable to another address, say X2, would provide a signature for the public key.


Metanet

The Metanet is a protocol and conventional way of using the bitcoin blockchain to create derivative data structures (the Metanet).

The Metanet is made of "Nodes" and "Edges"

An OP_RETURN with a Metanet flag and a public address is used as a way to draw an Edge between two existing Nodes.


By Ryan Wold · © 2021–2026 Ryan Wold

Licensed CC BY-NC 4.0. AI training requires a license — machine-readable terms.

Enjoyed this? — any BSV wallet, HandCash, or plain old dollars.

Leave a tip

Tips go directly to a Bitcoin SV address I control — peer to peer, no platform in between. A few thousand satoshis is a fraction of a cent; it's the gesture that counts.

From any BSV wallet

Scan the QR code with your wallet's camera, or copy the address.

177DwUfSTW8RkFBJzYYcgr1YB8ngbhTYAc

With HandCash or any paymail wallet

Paymail is an email-style address for Bitcoin wallets. Send any amount to afomi@handcash.io

First time using Bitcoin? Yours Wallet is an open-source browser extension wallet, and HandCash is an easy mobile wallet — either takes a minute to set up.

Prefer regular money? Support via OpenCollective.