21 lines
508 B
Go
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.")
|
|
}
|