summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Remove old codeMagnus Ahltorp2014-10-271-4/+0
|
* Optimize ts by storing tree in array of arrays.Magnus Ahltorp2014-10-271-27/+24
|
* Check that entries are actually present when receiving new STH from merge nodesMagnus Ahltorp2014-10-272-10/+54
|
* Fix mistake in ebc9d5ba (Optimize fetchnewentries)Magnus Ahltorp2014-10-272-7/+14
|
* Parallel fsyncMagnus Ahltorp2014-10-272-10/+28
|
* Correct function specifications.Magnus Ahltorp2014-10-272-2/+2
|
* Optimize fetchnewentriesMagnus Ahltorp2014-10-252-9/+13
|
* Optimize db:get_by_indices by not fetching entry and implementing index:getrangeMagnus Ahltorp2014-10-253-23/+37
|
* Move internal HTTP APIs to mochiweb. Stop using jiffy.Magnus Ahltorp2014-10-253-134/+109
|
* Added lager for loggingMagnus Ahltorp2014-10-245-2/+24
|
* Fix bug getting storage_nodes configuration variableMagnus Ahltorp2014-10-241-2/+1
|
* Make frontend send entries to storage nodes if storage_nodes configuration ↵Magnus Ahltorp2014-10-241-6/+127
| | | | is set
* Added HTTP API:s for external mergeMagnus Ahltorp2014-10-243-2/+215
|
* db:get_by_leaf_hash(): Return notfound instead of crashing when no entry ↵Magnus Ahltorp2014-10-242-32/+57
| | | | | | | could be found. db:get_by_entry_hash(): Don't fetch index, isn't used and might not exist. index:add(): Allow writes at exiting indicies.
* Break include dependency on plop.hrlMagnus Ahltorp2014-10-244-8/+29
|
* Credit Emilia Käsper for the placeholder idea.Linus Nordberg2014-10-201-4/+10
|
* Add copyright and licensing information.copyrightLinus Nordberg2014-10-155-20/+10
| | | | After offline discussions with Magnus Ahltorp.
* Make get_by_indices() handle non-existing entries.Linus Nordberg2014-10-101-9/+17
| | | | | - Limit End to size - 1. - Return [] for start < 0 and bound end < start.
* Indent.Linus Nordberg2014-10-091-2/+2
|
* Add implementation of droplast/1.Linus Nordberg2014-10-081-1/+6
| | | | lists:droplast/1 is new as of R17.
* Merge remote-tracking branch 'refs/remotes/map/fsync4' into origin-masterLinus Nordberg2014-10-089-115/+408
|\ | | | | | | | | | | Conflicts: src/db.erl src/plop.erl
| * Use raw file storageMagnus Ahltorp2014-09-282-115/+72
| |
| * Merge branch 'fsync3' into fsync4Magnus Ahltorp2014-09-277-0/+337
| |\
| | * index: Added fsyncMagnus Ahltorp2014-09-261-2/+8
| | |
| | * Added implementation of index fileMagnus Ahltorp2014-09-261-0/+81
| | |
| | * Added atomic moduleMagnus Ahltorp2014-09-254-58/+97
| | |
| | * perm: Added readfile function.Magnus Ahltorp2014-09-251-9/+16
| | |
| | * perm: Don't crash if file content is different, tell caller instead. Better ↵Magnus Ahltorp2014-09-251-19/+35
| | | | | | | | | | | | error handling.
| | * Permanent storage implementationMagnus Ahltorp2014-09-253-0/+188
| | |
| * | Fix api problemsMagnus Ahltorp2014-09-271-2/+2
| | |
| * | Fix api problemsMagnus Ahltorp2014-09-271-5/+12
| | |
| * | wipplop-if-cleanupLinus Nordberg2014-09-274-288/+166
| |/
* | Fix api problemsplop-if-cleanup2Magnus Ahltorp2014-09-291-6/+13
| |
* | Clean up the plop interface, in preparation for a new db implementation.Linus Nordberg2014-09-294-288/+166
|/
* Sign the correct things in SPT's.Linus Nordberg2014-09-251-5/+8
| | | | | First, the log entry (i.e. leaf hash) must be a TLS vector. Second, an empty extension (as a TLS vector), must be included.
* Use correct LogID.Linus Nordberg2014-09-251-5/+4
|
* Rename inclusion_and_more/2.Linus Nordberg2014-09-251-6/+6
|
* Actually serialise TLS vectors according to specMagnus Ahltorp2014-09-231-2/+8
|
* Store and retrieve extra-data in/from db.Linus Nordberg2014-09-204-29/+40
| | | | Also, add more specs to db.
* Fix crash in inclusion() and add inclusion-and-leaf().Linus Nordberg2014-09-192-16/+41
|
* Hash over the MerkleTreeLeaf.Linus Nordberg2014-09-192-16/+11
| | | | | Hash over correct timestamp when adding submitted entries. Hash over the full #mtl{} when adding entries from db.
* Add field 'mtlhash' to the database, for get-proof-by-hash.Linus Nordberg2014-09-184-49/+68
| | | | | | | | | | Also, in db: Add field 'mtlhash' to record 'plop'. Rename 'hash' -> 'entryhash'. Add leaf_hash(), calculating a leaf hash from data. Fix a bug where print_tree() print half a byte of the hashes. Rename tree_hash() -> root(). Closes CATLFISH-3.
* Rewrite ts to use a list of lists and change its API.Linus Nordberg2014-09-162-88/+94
| | | | | | | | | | | We want to get rid of maps because they're a bit too new for some distributions. Replacing the arrays with lists is not necessary and arguably not even the right move -- they're about twice as costly RAM wise and the CPU cost for accesses are O(n). This cleans up the implementation though so let's keep it as a reference implementation. Changes to ht include poping potential placeholders in parent layer before adding and swapping IR -> RI all over, for consistency.
* Have inclusion/2 return Index too.newerhtLinus Nordberg2014-09-151-5/+5
|
* Add inclusion/2.Linus Nordberg2014-09-151-1/+11
|
* Make two comments @doc.Linus Nordberg2014-09-151-3/+2
|
* Add consistency/2.Linus Nordberg2014-09-151-5/+6
|
* Adjust plop for changes in ht.Linus Nordberg2014-09-142-43/+30
|
* Add comments to separate public API from testing and debugging funs.Linus Nordberg2014-09-141-0/+2
|
* Update #tree.evaluated for V=0 too.Linus Nordberg2014-09-141-1/+1
|