mafintosh / hyperdb

Distributed scalable database
MIT License
753 stars 75 forks source link

query authorized keys #63

Closed hackergrrl closed 6 years ago

hackergrrl commented 6 years ago

hyperdb#authorize makes it possible to authorize new keys, but there's no API for querying this information. The only way I can think of right now is running a hyperdb#createHistoryStream over all historic data (and perhaps indexing that locally).

hackergrrl commented 6 years ago

If I correctly grok how authorization works, this should just be a matter of iterating over _writers and checking for that key.

mafintosh commented 6 years ago

db.feeds contain all authorized keys. there is an api called .authorized(key) -> bool as well. we prob need docs for both

hackergrrl commented 6 years ago

+1 for docs!

derhuerst commented 6 years ago

AFAICT this is done. authorize and authorized are documented in the readme.