add probe folder
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
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.")
|
||||
}
|
||||
Reference in New Issue
Block a user