Skip to content

Implement NIP-13 Proof-of-Work#97

Merged
Sebastix merged 4 commits intonostrver-se:mainfrom
dsbaars:feature/nip-13-proof-of-work
May 27, 2025
Merged

Implement NIP-13 Proof-of-Work#97
Sebastix merged 4 commits intonostrver-se:mainfrom
dsbaars:feature/nip-13-proof-of-work

Conversation

@dsbaars
Copy link
Copy Markdown
Collaborator

@dsbaars dsbaars commented May 15, 2025

Implements NIP-13 Proof-of-Work

Includes tests and example

@dsbaars
Copy link
Copy Markdown
Collaborator Author

dsbaars commented May 15, 2025

Tests are failing because of relay responses. Probably better to mock these instead.

@Sebastix Sebastix self-requested a review May 15, 2025 14:41
@Sebastix Sebastix self-assigned this May 15, 2025
$event->setContent('Testing proof of work');

// Mine with a modest difficulty target that should be reached quickly in tests
$targetDifficulty = 10;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder how far we can stretch Github with a higher difficulty when performing this test ;)

@Sebastix Sebastix merged commit d77a98c into nostrver-se:main May 27, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants