MessageHeader constructor
MessageHeader({
- required BitcoinNetwork network,
- required String command,
- required int payloadLength,
- 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');
}
}