Handbook
Glossary
<hashcash> ( -- tuple )
Hashcash
Prev:
hashcash
Next:
expiry-days
Vocabulary
hashcash
Inputs
None
Outputs
tuple
an
object
Word description
It fills a hashcash tuple with the default values:
1
as hashcash version,
20
as bits,
today's date
as date, and a
8-character long random string
as salt.
Definition
USING:
accessors
hashcash.private
kernel
random.passwords
;
IN:
hashcash
:
<hashcash>
( -- tuple )
hashcash
new
1
>>version
20
>>bits
now-gmt-yymmdd
>>date
8
ascii-password
>>salt
;