gudnuf / bolt12-prism

CLN plugin for lightning prisms using BOLT 12
15 stars 5 forks source link

Establish a "hierarchy" in the datastore with multiple keys #62

Closed gudnuf closed 7 months ago

gudnuf commented 7 months ago

Currently, when creating prisms we create them with one key which makes it so that we have to list all items in the datastore to find one single prism.

From the docs:

"key is an array of values (though a single value is treated as a one-element array), to form a hierarchy. Using the first element of the key as the plugin name (e.g. [ "summary" ]) is recommended."

This makes we think the prism's do not need to be name paced with "prism" instead something like datastore([prism, prismId]) could be used to create

gudnuf commented 7 months ago

resolved with commit 14c6be64096a0c049cd6fdb4fcc99fde2545b2f1