Skip to main content

Module dashpay

Module dashpay 

Source
Expand description

DashPay contact request helpers

This module provides helper functions for creating and sending DashPay contact requests according to DIP-15 specification.

Structs§

ContactRequestInput
Input for creating a contact request document
ContactRequestResult
Result of creating a contact request document
SendContactRequestInput
Input for sending a contact request to the platform
SendContactRequestResult
Result of sending a contact request

Enums§

EcdhProvider
ECDH provider for contact request encryption
RecipientIdentity
Recipient identity specification for contact requests

Functions§

recipient_key_purpose_is_acceptable_on_receive
Whether purpose on the recipientKeyIndex key of an inbound, already on-chain contact request is acceptable for the ECDH that unwraps the sender’s encryptedPublicKey.
recipient_key_purpose_is_valid
Whether purpose is acceptable for the recipientKeyIndex key 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]: whether purpose on the senderKeyIndex key of an inbound, already on-chain contact request is acceptable for ECDH.

Type Aliases§

ContactRequestDocuments
Result of a contact request query containing the parsed documents