summaryrefslogtreecommitdiff
path: root/README
blob: b5910a5cef8a01200bda97f1483c3473044b0a64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
plop is a public log based on a Merkle tree. It can be used for
implementing Certificate Transparency (RFC 6962).

The first implementation is in Erlang. The only interface supported
initially is Erlang messages.

Requires Erlang/OTP 17 [erts-6.0] or later.

Compile the application

  $ erl -make

Start the application locally

  Very first time, before there is a database:
  $ erl -boot start_sasl -pa ebin -eval "plop_app:install([node()])."
  There should now exist a directory Mnesia.nonode@nohost/ with four
  files in it.

  Start the application:
  $ erl -boot start_sasl -pa ebin \
    -eval "application:start(mnesia), application:start(plop)."

  FIXME: mnesia isn't starting automagically, why?
  TODO: -plop Keyfile "test/rsakey.pem" -plop Passphrase "sikrit"

Test the application

  [FIXME]

Moving the database files

  Add `-mnesia dir "/some/path"' to the list of arguments to erl.

Debugging

  Dump the database to a file:
  1> db:dump_to_file("dump.txt").