Skip to content

Commit 6adf97b

Browse files
authored
Merge pull request #5 from sebadob/prepare-v0.2.0
update changelog
2 parents e4a51cb + 3b0e3d2 commit 6adf97b

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## v0.2.0
4+
5+
- Changed the default difficulty to `20`, which is more reasonable for modern processors
6+
- Added `Pow::init_bytes()` to init the secrets from given bytes
7+
38
## v0.1.1
49

510
Include more documentation on docs.rs

README.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ which is being used for instance for the Bitcoin blockchain as well.
5454

5555
## Difficulty
5656

57-
The difficulty is an int between 10 and 99. The default is `18`.
57+
The difficulty is an int between 10 and 99. The default is `20`.
5858
With each step, the time to solve the puzzle will increase exponentially, while the time to
5959
validate it in the backend will always stay the same and is independent of the difficulty.
6060

@@ -67,7 +67,7 @@ and need way longer than the median value. All of this depends on the random val
6767
PoW during creation. To find a good value, you should test a lot of different PoW's preferably
6868
on your target system to find a good median time.
6969
This project has a bin target which does exactly that, but actually in the backend. You can
70-
run it with for instance `cargo run --release 18 100` and it will solve 100 randomly generated
70+
run it with for instance `cargo run --release 20 100` and it will solve 100 randomly generated
7171
puzzles with difficulty 20, and at the end print out the median time. Please keep in mind though
7272
that the backend code is much more performant than the one inside the browser. In first tests,
7373
the wasm version in the browser needs roughly 2.5 - 3 times the amount of time, that is needed
@@ -76,6 +76,3 @@ in the backend in optimized, pure rust code. The JS version is ~20 times slower
7676
The `examples` folder contains a tiny frontend demo using Svelte. It uses a hardcoded
7777
challenge though, and it only shows how to solve a puzzle at this time. It does not provide
7878
a good indicator for a median time needed to solve puzzles with these difficulties.
79-
80-
On a mid-range laptop cpu `i7-8565U`, difficulty 18 with wasm in the browser needs a median
81-
time of ~950 ms.

0 commit comments

Comments
 (0)