remove emj
This commit is contained in:
@@ -23,19 +23,19 @@ func main() {
|
|||||||
|
|
||||||
err := proof.SignProof(&observation)
|
err := proof.SignProof(&observation)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println("❌ Failed to sign proof:", err)
|
fmt.Println("Failed to sign proof:", err)
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
proof.SaveProof(observation, *output)
|
proof.SaveProof(observation, *output)
|
||||||
fmt.Println("✅ Signed proof saved to", *output)
|
fmt.Println("Signed proof saved to", *output)
|
||||||
|
|
||||||
if *useIPFS {
|
if *useIPFS {
|
||||||
cid, err := proof.UploadToIPFS(*output)
|
cid, err := proof.UploadToIPFS(*output)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println("❌ Failed to upload to IPFS:", err)
|
fmt.Println("Failed to upload to IPFS:", err)
|
||||||
} else {
|
} else {
|
||||||
fmt.Println("📡 Uploaded to IPFS with CID:", cid)
|
fmt.Println("Uploaded to IPFS with CID:", cid)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user