diff --git a/go.mod b/go.mod index 6b0716d..49ab503 100644 --- a/go.mod +++ b/go.mod @@ -1,7 +1,7 @@ module git.ailur.dev/ailur/pow -go 1.23.0 +go 1.22 -require golang.org/x/crypto v0.27.0 +require golang.org/x/crypto v0.28.0 -require golang.org/x/sys v0.25.0 // indirect +require golang.org/x/sys v0.26.0 // indirect diff --git a/go.sum b/go.sum index 16773a1..83d9001 100644 --- a/go.sum +++ b/go.sum @@ -1,4 +1,8 @@ golang.org/x/crypto v0.27.0 h1:GXm2NjJrPaiv/h1tb2UH8QfgC/hOf/+z0p6PT8o1w7A= golang.org/x/crypto v0.27.0/go.mod h1:1Xngt8kV6Dvbssa53Ziq6Eqn0HqbZi5Z6R0ZpwQzt70= +golang.org/x/crypto v0.28.0 h1:GBDwsMXVQi34v5CCYUm2jkJvu4cbtru2U4TN2PSyQnw= +golang.org/x/crypto v0.28.0/go.mod h1:rmgy+3RHxRZMyY0jjAJShp2zgEdOqj2AO7U0pYmeQ7U= golang.org/x/sys v0.25.0 h1:r+8e+loiHxRqhXVl6ML1nO3l1+oFoWbnlu2Ehimmi34= golang.org/x/sys v0.25.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.26.0 h1:KHjCJyddX0LoSTb3J+vWpupP9p0oznkqVk/IfjymZbo= +golang.org/x/sys v0.26.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= diff --git a/main.go b/main.go index 1027828..9907c61 100644 --- a/main.go +++ b/main.go @@ -1,7 +1,8 @@ -package ailur_pow +package main import ( "bytes" + "fmt" "strconv" "strings" "time" @@ -69,3 +70,7 @@ func VerifyPoW(pow string) bool { return false } } + +func main() { + fmt.Println(PoW(2, "fg-auth-signup", 0)) +}