Hashcash class

Constructors

Hashcash()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

version int
Version of the implemented hashcash protocol Warning: This version has nothing to do with the version fo the Package stated in the pubspec.yaml file
no setter

Static Methods

check(String stamp, {String? resource, int bits = 20, Duration? checkExpiration}) bool
mint(String resource, {int bits = 20, DateTime? now, String extension = '', int saltChars = 8, bool stampSeconds = false}) String
Mint a new hashcash stamp for 'resource' with 'bits' of collision