UMIS SDK
    Preparing search index...

    Interface PresentationTransport

    A link that carries whole frames (the bytes of encodeFrameBytes) between a verifier and a wallet. An implementation cuts the frames to the size its medium allows and puts them back together, so that the layers above see frames only.

    interface PresentationTransport {
        close(): Promise<void>;
        onFrame(cb: (frame: Uint8Array) => void): () => void;
        send(frame: Uint8Array): Promise<void>;
    }
    Index
    • Ends the link; nothing is sent or delivered afterwards.

      Returns Promise<void>

    • Calls cb with every frame that arrives, until the returned function is called.

      Parameters

      • cb: (frame: Uint8Array) => void

      Returns () => void

    • Hands one frame to the link. Rejects when the link is closed or the frame cannot be sent.

      Parameters

      • frame: Uint8Array

      Returns Promise<void>