mirror of
https://github.com/status-im/status-mobile.git
synced 2025-01-13 10:16:01 +00:00
Extend security masked data protocol
This commit is contained in:
parent
f5675b640d
commit
df9062475c
@ -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)))
|
||||
|
Loading…
x
Reference in New Issue
Block a user