MessageHeader constructor

MessageHeader({
  1. required BitcoinNetwork network,
  2. required String command,
  3. required int payloadLength,
  4. required Uint8List checksum,
})

Implementation

MessageHeader({
  required this.network,
  required this.command,
  required this.payloadLength,
  required this.checksum,
}) {
  if (checksum.length != 4) {
    throw ArgumentError('Checksum must be exactly 4 bytes');
  }
}