From 9713b381a1f4528b39eae02e0464f27240653eee Mon Sep 17 00:00:00 2001 From: Eric Bauerfeld Date: Fri, 14 Feb 2025 03:34:57 -0500 Subject: [PATCH] Correct type description for `encryptionKey` option (#166) --- building-blocks/hypercore.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/building-blocks/hypercore.md b/building-blocks/hypercore.md index 610c11a..d8444d4 100644 --- a/building-blocks/hypercore.md +++ b/building-blocks/hypercore.md @@ -120,7 +120,7 @@ Hypercore will produce the following files: | **`valueEncoding`** | one of 'json', 'utf-8', or 'binary' | String | `'binary'` | | **`encodeBatch`** | optionally apply an encoding to complete batches | Function | `batch => { ... }` | | **`keyPair`** | optionally pass the public key and secret key as a key pair | Object | `null` | -| **`encryptionKey`** | optionally pass an encryption key to enable block encryption | String | `null` | +| **`encryptionKey`** | optionally pass an encryption key to enable block encryption | Buffer | `null` | | **`onwait`** | hook that is called if gets are waiting for download | Function | `() => {}` | | **`timeout`** | constructor timeout | integer | `0` | | **`writable`** | disable appends and truncates | Boolean | `true` |