Crate sapio[][src]

The Sapio Compiler Core Crate. Sapio is used to create multi-transaction Bitcoin Smart Contracts.

Modules

contract

Functionality comprising the language base, macros, and compiler internals.

template

utilities for building Bitcoin transaction templates up programmatically

util

Basic functionality / structs for Sapio

Macros

declare

The declare macro is used to declare the list of pathways in a Contract trait impl. formats for calling are:

finish

The then macro is used to define a FinishFunc or a FinishOrFunc formats for calling are:

guard

The guard macro is used to define a Guard. Guards may be cached or uncached. formats for calling are:

then

The then macro is used to define a ThenFunc formats for calling are: