mirror of
https://github.com/logos-messaging/js-rln.git
synced 2026-01-04 06:33:09 +00:00
remove console timer
This commit is contained in:
parent
2ef4252411
commit
cadb0e9543
@ -44,15 +44,12 @@ export class RLNEncoder implements IEncoder {
|
|||||||
|
|
||||||
private async generateProof(message: IMessage): Promise<IRateLimitProof> {
|
private async generateProof(message: IMessage): Promise<IRateLimitProof> {
|
||||||
const signal = toRLNSignal(this.contentTopic, message);
|
const signal = toRLNSignal(this.contentTopic, message);
|
||||||
|
|
||||||
console.time("proof_gen_timer");
|
|
||||||
const proof = await this.rlnInstance.generateRLNProof(
|
const proof = await this.rlnInstance.generateRLNProof(
|
||||||
signal,
|
signal,
|
||||||
this.index,
|
this.index,
|
||||||
message.timestamp,
|
message.timestamp,
|
||||||
this.idSecretHash
|
this.idSecretHash
|
||||||
);
|
);
|
||||||
console.timeEnd("proof_gen_timer");
|
|
||||||
return proof;
|
return proof;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user