function · Browser and Node
sealItem
@toip-tools/trust-coreView sourceimport { sealItem } from "@toip-tools/trust-core";
Declaration
sealItem(text: string, readers: {
did: string;
encryptionPublic: Uint8Array;
}[]): Promise<{
key: Uint8Array;
sealed: SealedText;
}>;
Parameters
textrequiredstringreadersrequired{ did: string; encryptionPublic: Uint8Array; }[]
Returns
Promise<{ key: Uint8Array; sealed: SealedText; }>