Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Signed-off-by: steve lasker <[email protected]>
  • Loading branch information
SteveLasker committed Dec 7, 2023
1 parent 8b8ef3b commit 2aa77a0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions content/developers/developer-patterns/scitt-api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ Clone the [DataTrails SCITT Examples](https://github.com/datatrails/datatrails-s
```shell
ISSUER=sample.sysnation.dev
SIGNING_KEY=my-signing-key.pem
SIGNED_STATEMENT_FILE=signed-statement.txt
SIGNED_STATEMENT_FILE=signed-statement.cbor
```

1. Create a [bearer_token](/developers/developer-patterns/getting-access-tokens-using-app-registrations) stored as a file, in a secure local directory with 0600 permissions.
Expand Down Expand Up @@ -118,9 +118,8 @@ EOF
1. Register the Statement
```shell
SIGNED_STATEMENT=`cat $SIGNED_STATEMENT_FILE`
OPERATION_ID=$(curl -X POST -H @$HOME/.datatrails/bearer-token.txt -d \
'{"statement":"'$SIGNED_STATEMENT'"}' \
OPERATION_ID=$(curl -X POST -H @$HOME/.datatrails/bearer-token.txt \
--data-binary @$SIGNED_STATEMENT_FILE \
https://app.datatrails.ai/archivist/v1/publicscitt/entries | jq -r .operationID)
```
Expand All @@ -134,7 +133,8 @@ EOF
```shell
curl -H @$HOME/.datatrails/bearer-token.txt \
https://app.datatrails.ai/archivist/v1/publicscitt/entries/$ENTRY_ID/receipt | jq
https://app.datatrails.ai/archivist/v1/publicscitt/entries/$ENTRY_ID/receipt \
-o receipt.cbor
```
## Retrieve Statements for the Artifact
Expand Down

0 comments on commit 2aa77a0

Please sign in to comment.