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