@not3/sdk
    Preparing search index...

    Class FragmentData

    Mainly used by the @not3/ui. As we do not want to send the encryption details to the server, we use this class to store and parse the details from the fragment block of the URL.

    Index

    Constructors

    • Create a new fragment.

      Parameters

      • options: {
            cryptoMode?: CryptoMode;
            seed: string;
            selfDestruct?: boolean;
            server?: string;
        }

        The options to create the fragment.

      Returns FragmentData

    Properties

    cryptoMode: CryptoMode

    The encryption mode to use.

    'cbc'
    
    seed: string

    The encryption seed.

    selfDestruct: boolean

    Whether the fragment should self-destruct after being read.

    false
    
    server: string

    The API server to use.

    null
    

    Methods

    • Convert the fragment to a URL fragment string. Set this as the hash of the UI URL to share the fragment.

      Returns string