Hedera State Proof Verifier in Go
Cryptographically prove a transaction is valid on Hedera Network in Go.
Based on official documentation.
Install
go get github.com/hashgraph/hedera-state-proof-verifier-go
How to use?
import "github.com/hashgraph/hedera-state-proof-verifier-go/stateproof"
verified, err := stateproof.Verify(txnID, stateProof)
Verify scheduled transaction
import "github.com/hashgraph/hedera-state-proof-verifier-go/stateproof"
verified, err := stateproof.VerifyScheduled(txnID, stateProof)
Examples
V2 Record Stream State Proof Verification
V5 Record Stream State Proof Verification with Full Record File
V5 Record Stream State Proof Verification with Compact Record File
V5 Record Stream State Proof Verification of Scheduled Transactions
V5 Record Stream State Proof Verification with Failing Node