mirror of
https://github.com/haveno-dex/haveno.git
synced 2024-12-24 23:09:36 -05:00
Update SeedWordsView.java
Using cakewallet's QR Code format ```String formattedSeed = "monero-wallet:?seed=" + seedWords.replace(" ", "+");```
This commit is contained in:
parent
5b754bff9d
commit
197997ba7f
@ -263,9 +263,12 @@ public class SeedWordsView extends ActivatableView<GridPane, Void> {
|
||||
|
||||
private void generateAndDisplayQRCode(String seedWords) {
|
||||
Platform.runLater(() -> {
|
||||
// Using cakewallet's QR Code format
|
||||
String formattedSeed = "monero-wallet:?seed=" + seedWords.replace(" ", "+");
|
||||
|
||||
// Generate QR Code using the net.glxn.qrgen library
|
||||
ByteArrayInputStream qrCodeStream = new ByteArrayInputStream(
|
||||
QRCode.from(seedWords).to(ImageType.PNG).stream().toByteArray()
|
||||
QRCode.from(formattedSeed).to(ImageType.PNG).stream().toByteArray()
|
||||
);
|
||||
Image qrCodeImage = new Image(qrCodeStream);
|
||||
qrCodeImageView.setImage(qrCodeImage);
|
||||
|
Loading…
Reference in New Issue
Block a user