%PDF- %PDF-
Direktori : /usr/local/share/emacs/27.2/lisp/mail/ |
Current File : //usr/local/share/emacs/27.2/lisp/mail/hashcash.elc |
;ELC ;;; Compiled ;;; in Emacs version 27.2 ;;; with all optimizations. ;;; This file uses dynamic docstrings, first added in Emacs 19.29. ;;; This file does not contain utf-8 non-ASCII characters, ;;; and so can be loaded in Emacs versions earlier than 23. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (byte-code "\300\301\302\303\304\305%\210\306\307\310\311\312DD\313\314\315\304\301&\210\306\316\310\311\317DD\320\314\321\304\301&\210\306\322\310\311\323DD\324\314\315\304\301&\210\306\325\310\311\326DD\327\314\330\304\301&\210\331\332\333\302#\210\334\211\203l \211@\332N\203e \333N\204e \335\333\332N#\210A\266\202\202K \210\336\332\333\337#\210\306\333\310\311\340DD\341\314\342\304\301&\210\306\343\310\311\344DD\345\314\346\304\301&\210\306\347\310\311\350DD\351\314\352\304\301&\210\306\353\310\311\354DD\355\314\356\304\301&\207" [custom-declare-group hashcash nil "Hashcash configuration." :group mail custom-declare-variable hashcash-default-payment funcall function #[0 "\300\207" [20] 1] "The default number of bits to pay to unknown users.\nIf this is zero, no payment header will be generated.\nSee `hashcash-payment-alist'." :type integer hashcash-payment-alist #[0 "\300\207" [nil] 1] "An association list mapping email addresses to payment amounts.\nElements may consist of (ADDR AMOUNT) or (ADDR STRING AMOUNT), where\nADDR is the email address of the intended recipient and AMOUNT is\nthe value of hashcash payment to be made to that user. STRING, if\npresent, is the string to be hashed; if not present ADDR will be used." (repeat (choice (list :tag "Normal" (string :name "Address") (integer :name "Amount")) (list :tag "Replace hash input" (string :name "Address") (string :name "Hash input") (integer :name "Amount")))) hashcash-default-accept-payment #[0 "\300\207" [20] 1] "The default minimum number of bits to accept on incoming payments." hashcash-accept-resources #[0 "\301BC\207" [user-mail-address (nil)] 2] "An association list mapping hashcash resources to payment amounts.\nResources named here are to be accepted in incoming payments. If the\ncorresponding AMOUNT is NIL, the value of `hashcash-default-accept-payment'\nis used instead." alist defvaralias hashcash-path hashcash-program (saved-value saved-variable-comment) put make-obsolete-variable "24.4" #[0 "\300\207" [#1="hashcash"] 1 #1#] "The name of the hashcash executable.\nIf this is not in your PATH, specify an absolute file name." (choice (const nil) file) hashcash-extra-generate-parameters #[0 "\300\207" [nil] 1] "A list of parameter strings passed to `hashcash-program' when minting.\nFor example, you may want to set this to (\"-Z2\") to reduce header length." (repeat string) hashcash-double-spend-database #[0 "\300\207" [#2="hashcash.db"] 1 #2#] "The name of the double-spending database file." file hashcash-in-news #[0 "\300\207" [nil] 1] "Specifies whether or not hashcash payments should be made to newsgroups." boolean] 8) #@55 Alist of asynchronous hashcash processes and buffers. (defvar hashcash-process-alist nil (#$ . 3061)) (byte-code "\300\301!\210\302\303!\203 \304\305\303\"\210\202 \304\305\306\"\210\302\307!\203% \304\310\307\"\210\202* \304\310\311\"\210\300\207" [require mail-utils fboundp point-at-bol defalias hashcash-point-at-bol line-beginning-position point-at-eol hashcash-point-at-eol line-end-position] 3) #@13 (fn ADDR) (defalias 'hashcash-strip-quoted-names #[257 "\300!\262\211\203 \301\302\"\203 \303\304\"\303\305\"P\207\207" [mail-strip-quoted-names string-match "\\`\\([^+@]+\\)\\+[^@]*\\(@.+\\)" match-string 1 2] 5 (#$ . 3471)]) (defalias 'hashcash-token-substring #[0 "\212\300\3012, \211`\302 {P\262\302 b\210\303u\210\304\305!\204 \306\301\"\210\304\305!\203 \303u\210\202 \262)\207" ["" --cl-block-nil-- hashcash-point-at-eol 1 looking-at "[ ]" throw] 4]) #@78 Return the hashcash payment value required for the given address. (fn ADDR) (defalias 'hashcash-payment-required #[257 "\302\"\3038\206 \211A@\206 \207" [hashcash-payment-alist hashcash-default-payment assoc 2] 4 (#$ . 3951)]) #@75 Return the string with which hashcash payments should collide. (fn ADDR) (defalias 'hashcash-payment-to #[257 "\301\"\211A@\206 \211@\206 \207" [hashcash-payment-alist assoc] 4 (#$ . 4191)]) #@82 Generate a hashcash payment by finding a VAL-bit collision on STR. (fn STR VAL) (defalias 'hashcash-generate-payment #[514 "\211\302V\203- \203- r\303\304!q\210\305 \210\306\307\310\311\310\312\313\314\315\n! &\210eb\210\316 )\207\317\320!\207" [hashcash-program hashcash-extra-generate-parameters 0 get-buffer-create " *hashcash*" erase-buffer apply call-process nil t "-m" "-q" "-b" number-to-string hashcash-token-substring error "No `hashcash' binary found"] 14 (#$ . 4394)]) #@162 Generate a hashcash payment by finding a VAL-bit collision on STR. Return immediately. Call CALLBACK with process and result when ready. (fn STR VAL CALLBACK) (defalias 'hashcash-generate-payment-async #[771 "\303V\203&