Skip to main content
Available The Go SDK is available at github.com/d4mr/t2z/sdks/go. It uses UniFFI bindings to the Rust core.

Installation

Since the Go SDK requires the native libt2z_uniffi library, you need to build from source:
Set the library path:

Quick Start

API Reference

Transaction Construction

Signing

Proving & Finalization

Utilities

Types

UniffiTransparentInput

UniffiPayment

UniffiExpectedTxOut

UniffiPczt

Error Handling

All functions return Go-style errors:

Performance Tips

Pre-build Proving Key

The first proof generation takes ~10 seconds. Pre-build at startup:

Type Mappings

Building from Source