Skip to content

To

type To =
| {
me: true;
}
| {
device: string;
}
| {
friend: string;
};

Who a text is locked for, when it is given to ctx.crypto.sealTo. It names the recipients, and it never contains a key. { me: true } means all the devices of the person, { device } means one device of the person, and { friend } means the devices of a friend, who is identified by the id of their group.