@atcute/car
Version:
lightweight DASL CAR (content-addressable archives) codec for AT Protocol.
9 lines • 352 B
JavaScript
import { CidLinkWrapper } from '@atcute/cid';
export const isCarV1Header = (value) => {
if (value === null || typeof value !== 'object') {
return false;
}
const { version, roots } = value;
return version === 1 && Array.isArray(roots) && roots.every((root) => root instanceof CidLinkWrapper);
};
//# sourceMappingURL=types.js.map