Expand description
DashPay contact request helpers
This module provides helper functions for creating and sending DashPay contact requests according to DIP-15 specification.
Structs§
- Contact
Request Input - Input for creating a contact request document
- Contact
Request Result - Result of creating a contact request document
- Send
Contact Request Input - Input for sending a contact request to the platform
- Send
Contact Request Result - Result of sending a contact request
Enums§
- Ecdh
Provider - ECDH provider for contact request encryption
- Recipient
Identity - Recipient identity specification for contact requests
Functions§
- recipient_
key_ purpose_ is_ acceptable_ on_ receive - Whether
purposeon therecipientKeyIndexkey of an inbound, already on-chain contact request is acceptable for the ECDH that unwraps the sender’sencryptedPublicKey. - recipient_
key_ purpose_ is_ valid - Whether
purposeis acceptable for therecipientKeyIndexkey of a contact request we are about to mint. The newest cohort references the recipient’s DECRYPTION key (our original convention); the dominant mobile cohort has no DECRYPTION key and references its ENCRYPTION key. Accept either; reject every other purpose. - sender_
key_ purpose_ is_ acceptable_ on_ receive - Receive-side counterpart of [
sender_key_purpose_is_valid]: whetherpurposeon thesenderKeyIndexkey of an inbound, already on-chain contact request is acceptable for ECDH.
Type Aliases§
- Contact
Request Documents - Result of a contact request query containing the parsed documents