Skip to content

feat: hb_device reserved keys - #1077

Open
charmful0x wants to merge 1 commit into
edgefrom
feat/device-reserved
Open

feat: hb_device reserved keys#1077
charmful0x wants to merge 1 commit into
edgefrom
feat/device-reserved

Conversation

@charmful0x

Copy link
Copy Markdown

this PR add hb_device:is_reserved/3,4: a key is reserved if the device declares it in info().reserved or it resolves to a real exported device function

it lets callers validate user keys against the actual device namespace, so trie@1.0 rejects internals like node-value and callable keys like get/set without having a hardcoded ?RESERVED_KEYS macro (removed in this PR)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant