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.

Tip: $afomi on HandCash · afomi@handcash.io