From de3fab3c70befe6920d5436ce0bef62f3e70ba29 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Tue, 22 Jul 2025 02:29:12 +0300 Subject: [api+ns] ns tool outputs JSON format and it's used for the API --- bin/ak-ns | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bin') diff --git a/bin/ak-ns b/bin/ak-ns index 4238250..4e08cfc 100755 --- a/bin/ak-ns +++ b/bin/ak-ns @@ -30,6 +30,7 @@ ## -rk, --resolve-key Resolves value from key ## -rp, --resolve-key-proof Resolves value from key and provides ## an akfs_map_v3 to clear signed proof +## -rj, --resolve-key-json Resolves a key to a JSON format ## -p, --publish Publishes value to key ## -pn, --publish2name Publishes value to name ## -pz, --publish-zchain Publishes zchain @@ -56,6 +57,7 @@ then -rn | --resolve-name) shift; _ak_ns_resolve_from_name $1; exit;; -rk | --resolve-key) shift; _ak_ns_resolve_from_key $1; exit;; -rp | --resolve-key-proof) shift; _ak_ns_resolve_from_key_with_proof $1; exit;; + -rj | --resolve-key-json) shift; _ak_ns_resolve_from_key_with_proof_json $1; exit;; -ek | --encode-key) shift; _ak_ns_encode_key $1; exit;; -dk | --decode-key) shift; _ak_ns_decode_key $1; exit;; -p | --publish) shift; _ak_ns_publish $1 $2; exit;; -- cgit v1.2.3