ACL state container — wraps @kehto/acl's pure functions with persistence and a convenient imperative API.
const aclState = createAclState(persistence);aclState.load();const allowed = aclState.check(pubkey, dTag, hash, 'relay:read'); Copy
const aclState = createAclState(persistence);aclState.load();const allowed = aclState.check(pubkey, dTag, hash, 'relay:read');
ACL state container — wraps @kehto/acl's pure functions with persistence and a convenient imperative API.
Example