mirror of
https://github.com/status-im/status-mobile.git
synced 2025-01-13 18:25:45 +00:00
Extend security masked data protocol
This commit is contained in:
parent
f5675b640d
commit
df9062475c
@ -11,6 +11,18 @@
|
|||||||
(deftype MaskedData [data]
|
(deftype MaskedData [data]
|
||||||
Object
|
Object
|
||||||
(toString [_] "******")
|
(toString [_] "******")
|
||||||
|
|
||||||
|
ICounted
|
||||||
|
(-count [^js this]
|
||||||
|
(count (.-data this)))
|
||||||
|
|
||||||
|
IEquiv
|
||||||
|
(-equiv [this other]
|
||||||
|
(if (instance? MaskedData other)
|
||||||
|
(= (unmask this)
|
||||||
|
(unmask other))
|
||||||
|
false))
|
||||||
|
|
||||||
Unmaskable
|
Unmaskable
|
||||||
(unmask [^js this]
|
(unmask [^js this]
|
||||||
(.-data this)))
|
(.-data this)))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user