pow all notes
This commit is contained in:
parent
677fee5205
commit
1f95a4f0c8
2 changed files with 31 additions and 1 deletions
20
consts.ts
Normal file
20
consts.ts
Normal file
|
@ -0,0 +1,20 @@
|
|||
/**
|
||||
* Minimum required Proof of Work (PoW) difficulty for note acceptance.
|
||||
*
|
||||
* Notes with PoW below this threshold will be rejected without decryption attempts.
|
||||
* This threshold serves as a DoS protection mechanism for the CCN in case of
|
||||
* public key compromise.
|
||||
*/
|
||||
export const MIN_POW = 8;
|
||||
|
||||
/**
|
||||
* Target Proof of Work (PoW) difficulty for relay-generated notes.
|
||||
*
|
||||
* Defines the PoW difficulty level that the relay will compute when generating
|
||||
* and encrypting its own notes before broadcasting them to the network.
|
||||
*
|
||||
* Expected Performance on modern hardware (2025):
|
||||
* - Difficulty 8: ~1ms
|
||||
* - Difficulty 21: ~5-6 seconds
|
||||
*/
|
||||
export const POW_TO_MINE = 10;
|
Loading…
Add table
Add a link
Reference in a new issue