invoice/
lib.rs

1// Modern, minimalistic & standard-compliant cold wallet library.
2//
3// SPDX-License-Identifier: Apache-2.0
4//
5// Written in 2020-2024 by
6//     Dr Maxim Orlovsky <orlovsky@lnp-bp.org>
7//
8// Copyright (C) 2020-2024 LNP/BP Standards Association. All rights reserved.
9// Copyright (C) 2020-2024 Dr Maxim Orlovsky. All rights reserved.
10//
11// Licensed under the Apache License, Version 2.0 (the "License");
12// you may not use this file except in compliance with the License.
13// You may obtain a copy of the License at
14//
15//     http://www.apache.org/licenses/LICENSE-2.0
16//
17// Unless required by applicable law or agreed to in writing, software
18// distributed under the License is distributed on an "AS IS" BASIS,
19// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20// See the License for the specific language governing permissions and
21// limitations under the License.
22
23#[macro_use]
24extern crate amplify;
25#[cfg(feature = "serde")]
26#[macro_use]
27extern crate serde;
28#[cfg(feature = "strict_encoding")]
29#[macro_use]
30extern crate strict_encoding;
31
32pub mod base58;
33mod address;
34mod network;
35
36pub use address::{
37    Address, AddressError, AddressNetwork, AddressParseError, AddressPayload, AddressType,
38};
39pub use network::{Network, UnknownGenesisBlock, UnknownNetwork};