Interface OneTimePreKey

One-Time Pre-Key: consumed exactly once per new chat. Directly X25519 (NOT Ed25519 converted).

const otks = generateOneTimePreKeys(100);
interface OneTimePreKey {
    keyPair: {
        privateKey: Uint8Array;
        publicKey: Uint8Array;
    };
}

Properties

Properties

keyPair: {
    privateKey: Uint8Array;
    publicKey: Uint8Array;
}