ba-blockchainanalysis/BA | Stamp
Anchor file hashes on Polygon + Bitcoin via OpenTimestamps. Legal-grade timestamps for CI artifacts.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| api-key | BA Stamp API key (ba_live_...). Mint at https://bastamp.com/account/api-keys. | yes | — |
| files | Newline-separated globs of files to stamp. Each matched file is hashed locally; only the SHA-256 is sent. | yes | — |
| jurisdiction | ISO 3166-1 alpha-2 country code applied to the certificate legal framing (e.g. IT, US, DE). | no | — |
| locale | BCP-47 locale for the certificate PDF (e.g. en, it, fr). | no | en |
| wait-for-anchor | If true, poll until every stamp is Polygon-anchored (~5 min). Does NOT wait on the Bitcoin/OpenTimestamps anchor — that confirms 1–6h later asynchronously; subscribe to the ots.upgraded webhook for it. Adds CI minutes; defaults to false. | no | false |
| poll-timeout-seconds | Maximum seconds to wait when wait-for-anchor=true. Default 900 (15 min). | no | 900 |
| output-json | Path to write the proofs JSON output. Default: bastamp-proofs.json. | no | bastamp-proofs.json |
| api-base | Override API base URL. Defaults to https://bastamp.com/api/v1. | no | https://bastamp.com/api/v1 |
Outputs
| name | description |
|---|---|
| stamps | JSON-encoded array of stamped items: { ownershipId, stampId, contentHash, fileName, anchored, txHash? }. |
| pending-count | Number of stamps not yet Polygon-anchored at exit. 0 when wait-for-anchor=true completed successfully. |
| anchored-count | Number of stamps Polygon-anchored at exit. Bitcoin/OTS confirmation lands later asynchronously. |
| credits-charged | Total credits charged across all batches in this run. |