Delegate Hashcash.Stamp
A delegate to determine a consistent Bytes
representation derived from a given nonce
.
Since it is called multiple times with different
nonce
s for
proof-of-work system, the total time an implementation elapses
should not vary for different nonce
s.
Namespace: Libplanet
Assembly: Libplanet.dll
Syntax
public delegate byte[] Stamp(Nonce nonce);
Parameters
Type | Name | Description |
---|---|---|
Nonce | nonce | An arbitrary nonce for an attempt, provided by Answer(Hashcash.Stamp, Int64) method. |
Returns
Type | Description |
---|---|
Byte[] | A Byte array determined from the given
|