Network constructor

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

Implementation

Network(String name, int identifier, DateTime epochTime, Hash256 generationHashSeed)
  : generationHashSeed = generationHashSeed,
  super(
    name,
    identifier,
    basic_timestamp.NetworkTimestampDatetimeConverter(epochTime, 'milliseconds'),
    () => SHA3Digest(256),
    (Uint8List addressWithoutChecksum, Uint8List checksum) =>
        Uint8List.fromList([...addressWithoutChecksum, ...checksum.sublist(0, 3)]),
    SymbolAddress,
    (int timestamp) => NetworkTimestamp(timestamp),
  );