#!/usr/bin/env bash
###
### arching-kaos-tools
### Tools to interact and build an Arching Kaos Infochain
### Copyright (C) 2021 - 2025 kaotisk
###
### This program is free software: you can redistribute it and/or modify
### it under the terms of the GNU General Public License as published by
### the Free Software Foundation, either version 3 of the License, or
### (at your option) any later version.
###
### This program is distributed in the hope that it will be useful,
### but WITHOUT ANY WARRANTY; without even the implied warranty of
### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
### GNU General Public License for more details.
###
### You should have received a copy of the GNU General Public License
### along with this program. If not, see
\n'
printf ' đĻ ZBLOCK\n' printf ' | \n'
printf ' \n'
printf ' \n'
printf ' \n'
printf ' %s\n' "$zblock" printf '%s' "$(_ak_ipfs_cat $zblock | jq)" printf ' | \n'
printf '
\n'
printf ' đĻ BLOCK\n' printf ' | \n'
printf ' \n'
printf ' \n'
printf ' \n'
printf ' %s\n' "$block" printf '%s\n' "$(_ak_ipfs_cat $block | jq)" printf ' | \n'
printf '
\n'
printf ' đ BLOCK SIGNATURE\n' printf ' | \n'
printf ' \n'
printf ' \n'
printf ' \n'
printf ' %s\n' "$block_signature" printf '%s\n' "$(_ak_ipfs_cat $block_signature)" printf ' | \n'
printf '
\n'
printf ' â TIMESTAMP\n' printf ' | \n'
printf ' \n'
printf ' %s \n' "$timestamp" printf ' | \n'
printf '
\n'
printf ' đ MODULE\n' printf ' | \n'
printf ' \n'
printf ' %s \n' "$module" printf ' | \n'
printf '
\n'
printf ' đĒ§ ACTION\n' printf ' | \n'
printf ' \n'
printf ' %s \n' "$action" printf ' | \n'
printf '
\n'
printf ' đ GPG\n' printf ' | \n'
printf ' \n'
printf ' \n'
printf ' \n'
printf ' %s\n' "$gpg" printf '%s\n' "$(_ak_ipfs_cat $gpg)" printf ' | \n'
printf '
\n'
printf ' đĻ PREVIOUS\n' printf ' | \n'
printf ' \n' printf ' đ %s\n' "$previous" "$previous" printf ' | \n' printf '
\n'
printf ' đĻ DATA\n' printf ' | \n'
printf ' \n'
printf ' \n'
printf ' \n'
printf ' %s\n' "$data" printf '%s\n' "$datablock" printf ' | \n'
printf '
\n'
printf ' đ DATA_SIGNATURE\n' printf ' | \n'
printf ' \n'
printf ' \n'
printf ' \n'
printf ' %s\n' "$detach" printf '%s\n' "$(_ak_ipfs_cat $detach)" printf ' | \n'
printf '
\n'
printf ' đ ipfs\n' printf ' | \n'
printf ' \n' printf ' đ %s\n' "$(echo $datablock | jq -r '.ipfs')" "$(echo $datablock | jq -r '.ipfs')" printf ' | \n' printf '
\n'
printf ' đ detach\n' printf ' | \n'
printf ' \n'
printf ' \n'
printf ' \n'
printf ' %s\n' "$(echo $datablock | jq -r '.detach')" printf '%s\n' "$(_ak_ipfs_cat $(echo $datablock | jq -r '.detach'))" printf ' | \n'
printf '
\n'
printf ' đ Rendered ZBLOCK\n' printf ' | \n'
printf '
\n'
printf ' %s\n' "$(cat $arg | jq)" printf ' | \n'
printf '