diff --git a/demos/apple/alice.sh b/demos/apple/alice.sh new file mode 100644 index 00000000..bc2f12e6 --- /dev/null +++ b/demos/apple/alice.sh @@ -0,0 +1,8 @@ +jq < ${HOME}/Documents/fediverse/scitt_federation_alice/config.json \ +&& sleep 2 \ +&& scitt-emulator server \ + --workspace ${HOME}/Documents/fediverse/scitt_federation_alice/workspace_alice/ \ + --tree-alg CCF \ + --port 7000 \ + --middleware scitt_emulator.federation_activitypub_bovine:SCITTFederationActivityPubBovine \ + --middleware-config-path ${HOME}/Documents/fediverse/scitt_federation_alice/config.json diff --git a/demos/apple/bob-webhook.sh b/demos/apple/bob-webhook.sh new file mode 100644 index 00000000..47350e28 --- /dev/null +++ b/demos/apple/bob-webhook.sh @@ -0,0 +1,4 @@ +gh webhook forward \ + --repo=pdxjohnny/scitt-api-emulator \ + --events=push \ + --url=https://scitt.bob.chadig.com/github-webhook-notary/ diff --git a/demos/apple/bob.sh b/demos/apple/bob.sh new file mode 100644 index 00000000..d023a157 --- /dev/null +++ b/demos/apple/bob.sh @@ -0,0 +1,12 @@ +jq < ${HOME}/Documents/fediverse/scitt_federation_bob/config.json \ +&& sleep 2 \ +&& scitt-emulator server \ + --workspace ${HOME}/Documents/fediverse/scitt_federation_bob/workspace_bob/ \ + --tree-alg CCF \ + --port 6000 \ + --middleware \ + scitt_emulator.federation_activitypub_bovine:SCITTFederationActivityPubBovine \ + scitt_emulator.github_webhook_notary:GitHubWebhookNotaryMiddleware \ + --middleware-config-path \ + ${HOME}/Documents/fediverse/scitt_federation_bob/config.json \ + - diff --git a/demos/apple/get_statement_from_alice.sh b/demos/apple/get_statement_from_alice.sh new file mode 100644 index 00000000..8d2101e4 --- /dev/null +++ b/demos/apple/get_statement_from_alice.sh @@ -0,0 +1,3 @@ +curl -sfL https://github.com/scitt-community/scitt-api-emulator/archive/$(git log -n 1 --format=%H).tar.gz | sha384sum - | awk '{print $1}' + +scitt-emulator client retrieve-claim --entry-id sha384:fe1952f763cf8947b6bc49902d7ec5f4a006c9358d2c6349b07896bf0967ebb7395eba7b30c9b7896b4096bc140a5f42 --url https://scitt.unstable.chadig.com --out webhook.push.cose