Added zero-hop contact sharing functionality and related UI updates
This commit is contained in:
1 parent
8470171e88
commit
5115d8bbe3
3 files changed
+101
-21
No files matched your search
@@ -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();
|
||||
}
|
||||
Reference in new issue
Block a user