/hedera-state-proof-verifier-go

State Proof Verifier library for Hedera in Go lang

Primary LanguageGoApache License 2.0Apache-2.0

GitHub Discord

Hedera State Proof Verifier in Go

Cryptographically prove a transaction is valid on Hedera Network in Go. Based on official documentation.

Install

go get https://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