File: hashcash.el.html
The hashcash binary is at http://www.hashcash.org/.
Call mail-add-payment to add a hashcash payment to a mail message in the current buffer.
Call mail-add-payment-async after writing the addresses but before writing the mail to start calculating the hashcash payment asynchronously.
The easiest way to do this automatically for all outgoing mail
is to set message-generate-hashcash to t. If you want more
control, try the following hooks.
To automatically add payments to all outgoing mail when sending:
(add-hook 'message-send-hook 'mail-add-payment)
To start calculations automatically when addresses are prefilled:
(add-hook 'message-setup-hook 'mail-add-payment-async)
To check whether calculations are done before sending: (add-hook 'message-send-hook 'hashcash-wait-or-cancel)
Defined variables (10)
hashcash-accept-resources | An association list mapping hashcash resources to payment amounts. |
hashcash-default-accept-payment | The default minimum number of bits to accept on incoming payments. |
hashcash-default-payment | The default number of bits to pay to unknown users. |
hashcash-double-spend-database | The name of the double-spending database file. |
hashcash-extra-generate-parameters | A list of parameter strings passed to ‘hashcash-program’ when minting. |
hashcash-in-news | Specifies whether or not hashcash payments should be made to newsgroups. |
hashcash-path | The name of the hashcash executable. |
hashcash-payment-alist | An association list mapping email addresses to payment amounts. |
hashcash-process-alist | Alist of asynchronous hashcash processes and buffers. |
hashcash-program | The name of the hashcash executable. |
Defined functions (21)
hashcash-already-paid-p | (RECIPIENT) |
hashcash-cancel-async | (&optional BUFFER) |
hashcash-check-payment | (TOKEN STR VAL) |
hashcash-generate-payment | (STR VAL) |
hashcash-generate-payment-async | (STR VAL CALLBACK) |
hashcash-insert-payment | (ARG) |
hashcash-insert-payment-async | (ARG) |
hashcash-insert-payment-async-2 | (BUFFER PROCESS PAY) |
hashcash-payment-required | (ADDR) |
hashcash-payment-to | (ADDR) |
hashcash-point-at-bol | (&optional N) |
hashcash-point-at-eol | (&optional N) |
hashcash-processes-running-p | (BUFFER) |
hashcash-strip-quoted-names | (ADDR) |
hashcash-verify-payment | (TOKEN &optional RESOURCE AMOUNT) |
hashcash-version | (TOKEN) |
hashcash-wait-async | (&optional BUFFER) |
hashcash-wait-or-cancel | () |
mail-add-payment | (&optional ARG ASYNC) |
mail-add-payment-async | (&optional ARG) |
mail-check-payment | (&optional ARG) |