pledge genkeys

The simplest tool first:  genkeys only does standard I/O, nothing else.
This commit is contained in:
Klemens Nanni 2024-10-20 12:07:16 +03:00
parent eef613993f
commit 2bc1c2d90f
3 changed files with 9 additions and 0 deletions

View file

@ -18,6 +18,8 @@ import (
"runtime"
"time"
"suah.dev/protect"
"github.com/yggdrasil-network/yggdrasil-go/src/address"
)
@ -27,6 +29,10 @@ type keySet struct {
}
func main() {
if err := protect.Pledge("stdio"); err != nil {
panic(err)
}
threads := runtime.GOMAXPROCS(0)
fmt.Println("Threads:", threads)
start := time.Now()