simfony_as_rust/jet/
bitcoin_without_primitives.rs

1/* This file has been automatically generated. */
2
3//! # Bitcoin (without primitives)
4//!
5//! This module defines jets for Bitcoin that work without the Bitcoin transaction environmnent.
6//! These jets are not recommended for non-Bitcoin(-like) applications.
7
8#![allow(unused)]
9#![allow(clippy::complexity)]
10
11use super::*;
12
13/// Parse an integer as a consensus-encoded Bitcoin lock time.
14///
15/// ## Cost
16///
17/// 97 mWU _(milli weight units)_
18pub fn parse_lock(a: u32) -> Either<Height,Time> {
19    todo!()
20}
21
22/// Parse an integer as a consensus-encoded Bitcoin sequence number.
23///
24/// ## Cost
25///
26/// 116 mWU _(milli weight units)_
27pub fn parse_sequence(a: u32) -> Option<Either<Distance,Duration>> {
28    todo!()
29}
30
31/// Create a SHA256 context, initialized with a "TapData" tag.
32///
33/// ## Cost
34///
35/// 1178 mWU _(milli weight units)_
36pub fn tapdata_init() -> Ctx8 {
37    todo!()
38}