Show / Hide Table of Contents

Delegate Hashcash.Stamp

A delegate to determine a consistent s representation derived from a given 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 s determined from the given nonce. It should return consistently equivalent bytes for equivalent nonce values. The way how bytes are split into chunks can be flexible; regardless of the way, they are concatenated into a single byte array.

See Also

Answer(Hashcash.Stamp, HashAlgorithmType, Int64, Int32, CancellationToken)
Nonce
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2018–2021 Planetarium