Documentation
    Preparing search index...

    Interface MockBlossomBlob

    One stored blob.

    const blob = service.mock.state().blobs.get(LINUX_DISTROS[0].sha256);
    blob?.servers.has('https://blossom.example.org');
    interface MockBlossomBlob {
        bytes: Uint8Array;
        servers: Set<string>;
        sha256: string;
        size: number;
        type: string;
        uploaded: number;
        uploader: string;
    }
    Index

    Properties

    bytes: Uint8Array

    Stored bytes.

    servers: Set<string>

    Server origins holding the blob.

    sha256: string

    Placeholder 64-hex hash.

    size: number

    Byte size.

    type: string

    MIME type.

    uploaded: number

    Unix seconds when stored.

    uploader: string

    Hex pubkey that uploaded the blob (for list).