[bisq-network/bisq] List Veil (VEIL) (#2430)

Matias Furszyfer notifications at github.com
Mon Mar 4 21:30:57 UTC 2019


furszy commented on this pull request.



> +    public Veil() {
+        super("Veil", "VEIL", new VeilAddressValidator());
+    }
+
+    public static class VeilAddressValidator extends Base58BitcoinAddressValidator {
+
+        public VeilAddressValidator() {
+            super(new VeilParams());
+        }
+
+        @Override
+        public AddressValidationResult validate(String address) {
+            if (address.startsWith("V")) {
+                try {
+                    // Base58
+                    Address.fromBase58(getNetworkParameters(), address);

Hi ok, no problem. 

Them are not exposed publicly, just made them protected to be able to get them in the future for bech32 and stealth addresses validation in case of not have them fully supported on the platform it selves.

-- 
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/2430#discussion_r262251432
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20190304/c729bbe0/attachment.html>


More information about the bisq-github mailing list