@corpus-core/colibri-stateless 0.6.0 → 0.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/c4w.js +1 -1
- package/index.js +5 -17
- package/package.json +1 -1
- package/types.d.ts +1 -1
- package/wasm.d.ts +1 -2
package/README.md
CHANGED
|
@@ -199,10 +199,10 @@ The constructor of the colibri client accepts a configuration-object, which may
|
|
|
199
199
|
```js
|
|
200
200
|
new Colibri({ prover: ["https://mainnet.colibri-proof.tech" ]})
|
|
201
201
|
```
|
|
202
|
-
- `
|
|
203
|
-
|
|
202
|
+
- `trusted_checkpoint` - optional beacon block hash used as trusted anchor
|
|
203
|
+
This single blockhash will be used as anchor for fetching the keys for the sync committee. So instead of starting with the genesis you can define a starting block, where you know the blockhash. If no trusted checkpoint is set, the verifier will automatically fetch the latest finalized checkpoint from a Checkpointz server, making initialization secure and convenient. Providing an explicit trusted checkpoint is recommended for maximum security control but is no longer required.
|
|
204
204
|
```js
|
|
205
|
-
new Colibri({
|
|
205
|
+
new Colibri({ trusted_checkpoint: "0x4232db57354ddacec40adda0a502f7732ede19ba0687482a1e15ad20e5e7d1e7" })
|
|
206
206
|
```
|
|
207
207
|
- `cache` - cache impl for rpc-requests
|
|
208
208
|
you can provide your own implementation to cache JSON-RPC requests. those function will be used before a request is send, also allowing mock handlers to cache responses for tests.
|