Files
whitepaper_obsero/probe/cmd/obsero-probe/main.go
T
2025-04-29 23:31:22 +02:00

21 lines
508 B
Go

package main
import (
"fmt"
"os"
"git.cryptolab.re/foudre/whitepaper_obsero/pkg/geo"
"git.cryptolab.re/foudre/whitepaper_obsero/pkg/probe"
"git.cryptolab.re/foudre/whitepaper_obsero/pkg/proof"
)
func main() {
target := "https://example.com"
location := geo.GetGeoLocation()
result := probe.HttpPing(target)
observation := proof.BuildProof(result, location)
proof.SaveProof(observation, "proof_http_result.json")
fmt.Println("✅ Proof generated and saved.")
}