mirror of
https://github.com/status-im/open-bounty.git
synced 2025-01-13 02:55:18 +00:00
Utility function for computing topic-id
* added utility function for computing topic ID hex-string from event signature
This commit is contained in:
parent
074f510aa5
commit
902129d639
@ -142,6 +142,10 @@
|
|||||||
(let [s (apply str (take 8 (sha3 signature)))]
|
(let [s (apply str (take 8 (sha3 signature)))]
|
||||||
(str "0x" s)))
|
(str "0x" s)))
|
||||||
|
|
||||||
|
(defn event-sig->topic-id [signature]
|
||||||
|
(let [s (sha3 signature)]
|
||||||
|
(str "0x" s)))
|
||||||
|
|
||||||
(defn valid-address?
|
(defn valid-address?
|
||||||
"Validate given ethereum address. Checksum validation is performed
|
"Validate given ethereum address. Checksum validation is performed
|
||||||
and input is case-sensitive"
|
and input is case-sensitive"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user