Neurone / hedera-state-proof-verifier-go

State Proof Verifier library for Hedera in Go lang

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

State Proof Verifier library for Hedera in Go lang

License:Apache License 2.0


Languages

Language:Go 100.0%