From 0b263bc76641aab8d812e2b121e0eaa6599c334c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20M=C3=B6rlein?= Date: Sat, 13 Feb 2021 22:01:20 +0100 Subject: [PATCH] respondd: rename pubkey to secure_nodeid --- net/respondd/src/respondd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/respondd/src/respondd.c b/net/respondd/src/respondd.c index fafb242..c481c84 100644 --- a/net/respondd/src/respondd.c +++ b/net/respondd/src/respondd.c @@ -501,7 +501,7 @@ static void public_from_secret(ecc_int256_t *pub, const ecc_int256_t *secret) { // { // ..., // "auth": { -// "pub": "25077b1914533e94a60853678b8484531a5f63463de87786f042e3d88d0bbc27", +// "secure_nodeid": "25077b1914533e94a60853678b8484531a5f63463de87786f042e3d88d0bbc27", // "sig": "eca0455a99a6b79edc719c18aa46c7d8f960e041f77f836326e6eae08064606320daff6f11cb0d0a2fb51a346725e3dc01e9a85f7c064ec857200c302937409" // } // } @@ -535,7 +535,7 @@ static void sign_json(struct json_object * obj, const ecc_int256_t *secret, cons // append pubkey char pub_str[64+1]; sprintf_hex(pub_str, pub->p, 32, 0); - json_object_object_add(auth, "pubkey", json_object_new_string(pub_str)); + json_object_object_add(auth, "secure_nodeid", json_object_new_string(pub_str)); json_object_object_add(obj, "auth", auth); }