Added zero-hop contact sharing functionality and related UI updates

This commit is contained in:
Winston Lowe
2026-01-31 15:00:33 -08:00
parent 8470171e88
commit 5115d8bbe3
3 changed files with 101 additions and 21 deletions
+9
View File
@@ -755,4 +755,13 @@ Uint8List buildImportContactFrame(String contactFrame) {
writer.writeByte(cmdImportContact);
writer.writeHex(contactFrame);
return writer.toBytes();
}
// Build a export contact frame
// [cmd][pub_key x32]
Uint8List buildZeroHopContact(Uint8List pubKey) {
final writer = BufferWriter();
writer.writeByte(cmdShareContact);
writer.writeBytes(pubKey);
return writer.toBytes();
}