mint ( resource -- stamp )
Hashcash

Next:mint* ( tuple -- stamp )


Vocabulary
hashcash

Inputs
resourcea string


Outputs
stampgenerated stamp


Word description
This word generates a valid stamp with default parameters and the specified resource.

Examples

Generate a valid stamp
The value foo@bar.com represents the resource string. The generated stamp is pushed on the data stack.
USING: hashcash ; "foo@bar.com" mint
--- Data stack: 1:20:220401:foo@bar.com::^Xt'xHT;:1eab9d

Generated stamp tabulated for better readability:
version1
bits20
date220401
resourcefoo@bar.com
salt^Xt'xHT;:1eab9d


Notes
Examples of common resource strings:
IP address
E-mail address


Definition