buildGetPublicKey function

Uint8List buildGetPublicKey({
  1. required List<int> addressN,
  2. bool showDisplay = false,
})

Implementation

Uint8List buildGetPublicKey({
  required List<int> addressN,
  bool showDisplay = false,
}) {
  final writer = ProtoWriter();
  writer.writeRepeatedUint32(1, addressN);
  // Field 4 (script_type) deliberately omitted - Model One firmware 1.12-1.13 rejects it.
  if (showDisplay) writer.writeBool(3, true);
  return writer.toBytes();
}