All files / src/models/infrasctructure transmittable-call-data.ts

0% Statements 0/0
0% Branches 0/0
0% Functions 0/0
0% Lines 0/0

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22                                           
import { CallData } from './call-data';
 
/**
 * Extension of CallData that includes additional properties required for
 * call data that needs to be transmitted between parties.
 *
 * Includes timestamp and recipient information for validation and routing.
 */
export interface TransmittableCallData extends CallData {
    /**
     * Timestamp of when the call data was created.
     * Used for message freshness validation and preventing replay attacks.
     */
    b: number;
 
    /**
     * Public key of the intended recipient.
     * Used to ensure messages are only processed by the intended recipient.
     */
    c: string;
}