seals/
lib.rs

1// Bitcoin protocol single-use-seals library.
2//
3// SPDX-License-Identifier: Apache-2.0
4//
5// Written in 2019-2024 by
6//     Dr Maxim Orlovsky <orlovsky@lnp-bp.org>
7//
8// Copyright (C) 2019-2024 LNP/BP Standards Association. All rights reserved.
9//
10// Licensed under the Apache License, Version 2.0 (the "License");
11// you may not use this file except in compliance with the License.
12// You may obtain a copy of the License at
13//
14//     http://www.apache.org/licenses/LICENSE-2.0
15//
16// Unless required by applicable law or agreed to in writing, software
17// distributed under the License is distributed on an "AS IS" BASIS,
18// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19// See the License for the specific language governing permissions and
20// limitations under the License.
21
22// Coding conventions
23// TODO: Activate no_std once StrictEncoding will support it
24// #![cfg_attr(not(feature = "std"), no_std)]
25#![deny(
26    dead_code,
27    missing_docs,
28    unsafe_code,
29    unused_variables,
30    unused_mut,
31    unused_imports,
32    non_upper_case_globals,
33    non_camel_case_types,
34    non_snake_case
35)]
36#![cfg_attr(coverage_nightly, feature(coverage_attribute))]
37#![cfg_attr(docsrs, feature(doc_auto_cfg))]
38
39//! The library provides single-use-seal implementations for bitcoin protocol.
40
41#[macro_use]
42extern crate amplify;
43#[macro_use]
44extern crate strict_encoding;
45#[macro_use]
46extern crate commit_verify;
47#[cfg(feature = "serde")]
48#[macro_use]
49extern crate serde;
50
51mod txout;
52mod wtxout;
53
54pub use txout::{
55    mmb, mpc, Anchor, AnchorError, AnchorMergeError, Noise, TxoSeal, TxoSealError, TxoSealExt,
56};
57pub use wtxout::{WOutpoint, WTxoSeal};