nostream
nostream copied to clipboard
feat: merkle tree and proofs
Description
- Support public key and IP address whitelisting for event rate limits
Related Issue
https://github.com/Cameri/nostr-ts-relay/issues/74
Motivation and Context
- Allow relay operator to mirror without hitting event rate limits
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
- [ ] Non-functional change (docs, style, minor refactor)
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
Checklist:
- [ ] My code follows the code style of this project.
- [ ] My change requires a change to the documentation.
- [ ] I have updated the documentation accordingly.
- [ ] I have read the CONTRIBUTING document.
- [ ] I have added tests to cover my code changes.
- [ ] All new and existing tests passed.
Pull Request Test Coverage Report for Build 3763976340
- 11 of 69 (15.94%) changed or added relevant lines in 4 files are covered.
- No unchanged relevant lines lost coverage.
- Overall coverage decreased (-3.9%) to 83.631%
| Changes Missing Coverage | Covered Lines | Changed/Added Lines | % |
|---|---|---|---|
| src/adapters/web-socket-adapter.ts | 5 | 8 | 62.5% |
| src/validator/trail-log.ts | 0 | 4 | 0.0% |
| src/validator/compact-merkle-tree.ts | 0 | 51 | 0.0% |
| <!-- | Total: | 11 | 69 |
| Totals | |
|---|---|
| Change from base Build 3762686547: | -3.9% |
| Covered Lines: | 832 |
| Relevant Lines: | 995 |







