Go SDK for signing IntentProof execution events locally.
Configure,Wrap,RunWithCorrelationID,Flush- JCS canonicalization and Ed25519 signing
- SQLite WAL outbox
- Optional HTTP export for local dev loops only
github.com/intentproof/intentproof-sdk-go
go get github.com/intentproof/intentproof-sdk-go/intentproofgo test ./...Fixtures align with
intentproof-spec.
package main
import (
"log"
"github.com/intentproof/intentproof-sdk-go/intentproof"
)
func main() {
if err := intentproof.Configure(intentproof.ConfigureOptions{
DBPath: "./intentproof-outbox.db",
DataDir: "./.intentproof-sdk-go",
}); err != nil {
log.Fatal(err)
}
refund := intentproof.Wrap(
"Return funds to the customer",
"payments.refund.execute",
func(input map[string]any) map[string]any {
return map[string]any{"id": "re_123"}
},
)
intentproof.RunWithCorrelationID("req_refund_ord_1042", func() {
_ = refund(map[string]any{"amount_cents": 4999})
})
intentproof.Flush()
}Default keys: ~/.intentproof/sdk-go/keypair.json.
GitHub Issues —
see CONTRIBUTING.md. Security reports:
security@intentproof.io or a private GitHub Security Advisory.
MIT — see LICENSE.