Contractless/src/records/wallet_registry/mod.rs

27 lines
1.1 KiB
Rust
Raw Normal View History

2026-05-24 17:56:57 +00:00
use crate::common::network_paths_and_settings::block_extension_and_paths;
use crate::decode;
use crate::sled::Db;
use crate::wallets::structures::Wallet;
pub(super) const WALLET_REGISTRY_TREE: &str = "wallet_registry";
pub(super) const WALLET_VANITY_ADDRESS_TREE: &str = "wallet_vanity_address";
pub(super) const WALLET_VANITY_OWNER_TREE: &str = "wallet_vanity_owner";
pub(crate) const WALLET_VANITY_ROLLBACK_TREE: &str = "wallet_vanity_rollback";
mod helpers;
mod mappings;
mod storage;
pub mod structs;
pub use helpers::{get_registered_pubkey, is_registered_short_address, short_address_exists};
pub use mappings::{
get_registered_vanity_for_owner, list_registered_wallets, require_canonical_registered_short_address,
resolve_canonical_registered_short_address, resolve_local_input_short_address,
resolve_owner_from_vanity_address, resolve_pubkey_from_short_address, take_previous_vanity_for_txid,
};
pub use storage::{
register_or_update_vanity_address, register_short_address, remove_registered_vanity_for_owner,
store_previous_vanity_for_txid,
};
pub use structs::{VanityRegistrationResult, WalletRegistrationResult};