Merge branch '2167-decode-qr-code-for-pairing-with-mailbox' into 'master'

Create initial MailboxPairViewModel that decodes QR code

Closes #2167

See merge request briar/briar!1544
This commit is contained in:
akwizgran
2021-11-16 12:15:26 +00:00
19 changed files with 191 additions and 44 deletions

View File

@@ -170,4 +170,11 @@ public interface CryptoComponent {
* length. The line terminator is CRLF.
*/
String asciiArmour(byte[] b, int lineLength);
/**
* Encode the onion/hidden service address given its public key. As
* specified here: https://gitweb.torproject.org/torspec.git/tree/rend-spec-v3.txt?id=29245fd5#n2135
*/
String encodeOnionAddress(byte[] publicKey);
}