good morning!!!!

Skip to content
Snippets Groups Projects
Commit 5af9b598 authored by a's avatar a
Browse files

Update readme.md

parent 3a42b7be
Branches
Tags
No related merge requests found
......@@ -4,7 +4,14 @@
this is an embeddable ethereum method signature db for go applications
it contains ~500,000 popular signatures, and will add ~25mb to your application binary
in package sigs, there is function signatures
it contains ~500,000 popular signatures, and will add ~26mb to your application binary
in package topics, there is topic[0]'s
it contains ~12,000 popular event hashes, and will add ~1mb to your application binary
## usage
......@@ -46,9 +53,10 @@ so, go into trie, lookup hash. if exists, then get sigData from pos to pos+sz. t
this is very fast since its all in memory.
### how generate
the dataset it is generated from is https://github.com/ethereum-lists/4bytes
the datasets used are from https://github.com/ethereum-lists/4bytes and https://github.com/wmitsuda/topic0
first, i create a 32kb dictionary for std decoding. this seemed to work okay and isnt too big. bigger didnt help. this is trained using a subset of files. since signatures share so much info, it is more than plenty
......@@ -56,11 +64,18 @@ so we have hashes and signatures, along with a compression dictionary
then i iterate over all hashes and signatures, creating key value pairs as i compress each signature and append to the sigData
then using package github.com/openacid/slim i create a trie of all the key-value pairs
### triemap
triemap package is where all the logic for reading the files is
### _hack/gen
in hack/gen is the script i use to generate these. it's sorta lol, but it works.
feel free to use it as template to make your.
## contributing
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment