[bisq-network/bisq] Sign single account (#4957)

sqrrm notifications at github.com
Tue Dec 15 19:34:27 CET 2020


@sqrrm commented on this pull request.



> +    public Tuple2<AccountAgeWitness, byte[]> signInfoFromString(String signInfo) {
+        var parts = signInfo.split(",");
+        if (parts.length != 2){
+            return null;
+        }
+        byte[] pubKeyHash;
+        Optional<AccountAgeWitness> accountAgeWitness;
+        try {
+            var accountAgeWitnessHash = Utilities.decodeFromHex(parts[0]);
+            pubKeyHash = Utilities.decodeFromHex(parts[1]);
+            accountAgeWitness = getWitnessByHash(accountAgeWitnessHash);
+        } catch (Exception e) {
+            return null;
+        }
+
+        return accountAgeWitness

Yes, done.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/bisq-network/bisq/pull/4957#discussion_r543587918
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20201215/8d4e1b0c/attachment.htm>


More information about the bisq-github mailing list