diff --git a/src/status_im/utils/security.cljs b/src/status_im/utils/security.cljs index 4eafea1a57..006923effc 100644 --- a/src/status_im/utils/security.cljs +++ b/src/status_im/utils/security.cljs @@ -11,6 +11,18 @@ (deftype MaskedData [data] Object (toString [_] "******") + + ICounted + (-count [^js this] + (count (.-data this))) + + IEquiv + (-equiv [this other] + (if (instance? MaskedData other) + (= (unmask this) + (unmask other)) + false)) + Unmaskable (unmask [^js this] (.-data this)))