Define subaddress indexes to use

(1, 0) is the external address. (2, *) are the internal addresses.
This commit is contained in:
Luke Parker
2024-09-13 02:12:32 -04:00
parent e78236276a
commit 1b39138472
4 changed files with 33 additions and 10 deletions

View File

@@ -1,3 +1,10 @@
use monero_wallet::address::SubaddressIndex;
pub(crate) mod output;
pub(crate) mod transaction;
pub(crate) mod block;
pub(crate) const EXTERNAL_SUBADDRESS: Option<SubaddressIndex> = SubaddressIndex::new(1, 0);
pub(crate) const BRANCH_SUBADDRESS: Option<SubaddressIndex> = SubaddressIndex::new(2, 0);
pub(crate) const CHANGE_SUBADDRESS: Option<SubaddressIndex> = SubaddressIndex::new(2, 1);
pub(crate) const FORWARDED_SUBADDRESS: Option<SubaddressIndex> = SubaddressIndex::new(2, 2);