mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-03-19 22:31:54 +01:00
implementation as per NIP-13 https://github.com/nostr-protocol/nips/blob/e79c84ae/13.md some benchmark results: $ go test -bench . ./nip13 goos: linux goarch: amd64 pkg: github.com/nbd-wtf/go-nostr/nip13 cpu: Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz BenchmarkCheck-8 144905385 8.328 ns/op BenchmarkGenerateOneIteration-8 467874 2451 ns/op BenchmarkGenerate/8bits-8 4045 1033196 ns/op BenchmarkGenerate/16bits-8 16 101939954 ns/op BenchmarkGenerate/24bits-8 1 11411513764 ns/op PASS ok github.com/nbd-wtf/go-nostr/nip13 22.220s