Network constructor

Network(
  1. String name,
  2. int identifier,
  3. DateTime epochTime
)

Implementation

Network(String name, int identifier, DateTime epochTime) :
  super (
    name,
    identifier,
    basic_timestamp.NetworkTimestampDatetimeConverter(epochTime, 'seconds'),
    () => KeccakDigest(256),
    (Uint8List addressWithoutChecksum, Uint8List checksum) =>
        Uint8List.fromList([...addressWithoutChecksum, ...checksum]),
    NemAddress,
    (int timestamp) => NetworkTimestamp(timestamp),
  );