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 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 array determined from the given nonce. It should return consistently an equivalent array for equivalent nonce values.

See Also

Answer(Hashcash.Stamp, Int64, CancellationToken)
Nonce
  • Improve this Doc
  • View Source
Back to top Copyright © 2019–2020 Planetarium