Delegate Hashcash.Stamp
A delegate to determine a consistent 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, CancellationToken) method. |
Returns
Type | Description |
---|---|
Byte[] | A |