Categorygithub.com/hashgraph/hedera-state-proof-verifier-go
repository
0.0.0-20230510134647-2cb8fe29f389
Repository: https://github.com/hashgraph/hedera-state-proof-verifier-go.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# README

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 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