Initial import of verae-request-splitter from zapier monorepo
This commit is contained in:
commit
9bafd34b2e
6 changed files with 166 additions and 0 deletions
32
README.md
Normal file
32
README.md
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
# verae-request-splitter
|
||||
|
||||
Splits a Zapier/middleware body into (1) the **chain hash** and (2) off-chain **archive puts**. File bytes never go on `api.veraetime.net`.
|
||||
|
||||
**Forgejo:** https://git.georgelambert.org/marchon/verae-request-splitter
|
||||
**Catalog:** https://zapier.georgelambert.org/packages/verae-request-splitter/README.pdf
|
||||
**NATS:** https://zapier.georgelambert.org/docs-master/modules/verae-request-splitter/NATS.pdf
|
||||
|
||||
## Run
|
||||
|
||||
```bash
|
||||
cd packages/verae-request-splitter
|
||||
npm test
|
||||
```
|
||||
|
||||
Today middleware calls this **in-process**. A later split-out can subscribe `verae.splitter.in`.
|
||||
|
||||
## Outputs
|
||||
|
||||
| Path | Content |
|
||||
|------|---------|
|
||||
| Chain | `{ sha256, hashAlg }` only |
|
||||
| `verae.archive.put` | each `publicMeta` / `privateMeta` / `file` |
|
||||
| Batch | Merkle **root** on chain; leaves → tree-node puts (`kind=tree`) |
|
||||
|
||||
## Depends on
|
||||
|
||||
- middleware-http (caller)
|
||||
- archive-worm / tree-node (puts)
|
||||
- chain client (hash seal)
|
||||
|
||||
Does not talk to Zapier or the job poller.
|
||||
Loading…
Add table
Add a link
Reference in a new issue