@chainsafe/libp2p-noise
Version:
Noise libp2p handshake for js-libp2p
17 lines • 474 B
TypeScript
export declare const MIN_NONCE = 0;
export declare const MAX_NONCE = 4294967295;
/**
* The nonce is an uint that's increased over time.
* Maintaining different representations help improve performance.
*/
export declare class Nonce {
private n;
private readonly bytes;
private readonly view;
constructor(n?: number);
increment(): void;
getBytes(): Uint8Array;
getUint64(): number;
assertValue(): void;
}
//# sourceMappingURL=nonce.d.ts.map