switch to CIDv1

This commit is contained in:
Matthias Kretschmann 2021-09-12 19:19:21 +02:00
parent 67d62f3080
commit c535bcac39
1 changed files with 2 additions and 0 deletions

View File

@ -30,6 +30,8 @@ export default function useIpfsApi(config: Options): IpfsApiValue {
const options = {
wrapWithDirectory: true,
cidVersion: 1,
hashAlg: 'sha2-256',
progress: (length: number) => formatBytes(length, 0)
}