Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions key-wallet/src/dip9.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,21 @@ pub const FEATURE_PURPOSE_IDENTITIES_SUBFEATURE_INVITATIONS: u32 = 3;
pub const FEATURE_PURPOSE_ASSET_LOCK_SUBFEATURE_ADDRESS_TOPUP: u32 = 4;
pub const FEATURE_PURPOSE_ASSET_LOCK_SUBFEATURE_SHIELDED_ADDRESS_TOPUP: u32 = 5;
pub const FEATURE_PURPOSE_DASHPAY: u32 = 15;
/// DIP-15 auto-accept feature index: the derivation family
/// `m/9'/coin_type'/16'/expiry'` holding the shareable, expiry-bounded
/// bearer keys that a DashPay user embeds in an auto-accept QR (`dapk`) so a
/// scanned contact request auto-establishes. Consumers (the platform wallet's
/// auto-accept path builder and the FFI signer's raw-key export gate) must
/// reference this constant rather than a local literal.
pub const FEATURE_PURPOSE_DASHPAY_AUTO_ACCEPT: u32 = 16;
/// DIP-15 contactInfo `encToUserId` hardened child (`root / 65536' / index'`,
/// where `root` is the owner's identity-authentication path): derives the
/// AES key that encrypts the contact id in a `contactInfo` document.
pub const DASHPAY_CONTACT_INFO_ENC_TO_USER_ID_CHILD: u32 = 1 << 16;
/// DIP-15 contactInfo `privateData` hardened child (`root / 65537' / index'`):
/// derives the AES key that encrypts the private-data blob in a `contactInfo`
/// document.
pub const DASHPAY_CONTACT_INFO_PRIVATE_DATA_CHILD: u32 = (1 << 16) + 1;
/// DIP-17: Platform Payment Addresses feature index
pub const FEATURE_PURPOSE_PLATFORM_PAYMENT: u32 = 17;
pub const DASH_BIP44_PATH_MAINNET: IndexConstPath<2> = IndexConstPath {
Expand Down
Loading