kee

Offline IOU signer with QR as transport
git clone https://holbrook.no/src/kee
Info | Log | Files | Refs | README | LICENSE

commit c747b457c2a68516541c5f680225d28ea43ff719
parent b3abbb45c93ecc7a26a781c18781e61d9270c736
Author: lash <dev@holbrook.no>
Date:   Fri, 29 Mar 2024 11:23:49 +0000

Implement resolve body in deserialize ledger head

Diffstat:
Msrc/gtk/kee-entry-store.c | 2+-
Msrc/gtk/kee-entry.c | 4++++
2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/gtk/kee-entry-store.c b/src/gtk/kee-entry-store.c @@ -66,7 +66,7 @@ static gpointer kee_entry_store_get_item(GListModel *list, guint index) { //kee_entry_load(o, list->db); store = KEE_ENTRY_STORE(list); - o = g_object_new(KEE_TYPE_ENTRY, NULL); + o = kee_entry_new(&store->resolver); kee_entry_store_seek(store, index); kee_entry_deserialize(o, store->last_key, 9, store->last_value, store->last_value_length); diff --git a/src/gtk/kee-entry.c b/src/gtk/kee-entry.c @@ -103,6 +103,10 @@ int kee_entry_deserialize(KeeEntry *o, const char *key, size_t key_len, const ch o->body = p; r = import_read(&im, o->body, out_len); + if (o->resolver) { + r = cadiz_resolve(o->resolver, o->body, o->body, &out_len); + } + o->state = 0; import_free(&im);