@dfinity/vetkeys - v0.1.0
    Preparing search index...

    This interface represents the structure of an encrypted map as stored in the backend canister. It contains all the necessary information about a map, including its access control settings, encrypted key-value pairs, and metadata.

    interface EncryptedMapData {
        access_control: [Principal, AccessRights][];
        keyvals: [ByteBuf, ByteBuf][];
        map_name: ByteBuf;
        map_owner: Principal;
    }
    Index

    Properties

    access_control: [Principal, AccessRights][]

    Access control list for the map (excluding the map owner), specifying which users have what level of access. Each entry is a tuple of [Principal, AccessRights] where:

    • Principal: The user's identity
    • AccessRights: The level of access granted (Read, ReadWrite, or ReadWriteManage)
    keyvals: [ByteBuf, ByteBuf][]

    The encrypted key-value pairs stored in the map. Each entry is a tuple of [ByteBuf, ByteBuf] where:

    • First ByteBuf: The encrypted key
    • Second ByteBuf: The encrypted value
    map_name: ByteBuf

    The name/identifier of the map. This is used to uniquely identify the map within the system.

    map_owner: Principal

    The principal of the map owner. This identifies who created and owns the map.