#! /bin/bash

. gen-helper.sh --directory=one-best-way ${@:+"$@"}

key root
key intermediate-1
key intermediate-2
key intermediate-3
key alice
key bob
key carol
key dave
key ed
key intermediate-a
key intermediate-b
key intermediate-c
key target

certify root           -a 120 -d 10 intermediate-1
certify intermediate-1 -a 120 -d 9 intermediate-2
certify intermediate-2 -a 120 -d 8 intermediate-3

certify intermediate-3   -a   1 -d 7 alice
certify intermediate-3   -a   1 -d 7 bob
certify intermediate-3   -a 120 -d 7 carol
certify intermediate-3   -a   1 -d 7 dave
certify intermediate-3   -a   1 -d 7 ed

certify alice  -a 120 -d 6 intermediate-a
certify bob    -a 120 -d 6 intermediate-a
certify carol  -a 120 -d 6 intermediate-a
certify dave   -a 120 -d 6 intermediate-a
certify ed     -a 120 -d 6 intermediate-a

certify intermediate-a -a 120 -d 5 intermediate-b
certify intermediate-b -a 120 -d 4 intermediate-c

certify intermediate-c -a 120 -d 3 target

finish
