mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-02 09:21:39 +00:00
* feat: Add Enclave Usage Examples * feat(es/ucan): Add comprehensive integration tests - Create integration.test.ts with full UCAN token lifecycle testing - Cover end-to-end token creation, parsing, and validation - Test capability attenuation and delegation chains - Validate multi-algorithm support and timestamp scenarios - Implement error recovery and performance test scenarios 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com> * No commit suggestions generated * No commit suggestions generated * chore: Remove migrated components and add migration documentation Removed all code and references for components that have been moved to separate repositories: **Moved to sonr-io/hway:** - bridge/ - HTTP service with OAuth2/OIDC/WebAuthn handlers - cmd/hway/ - Highway service binary - internal/migrations/ - PostgreSQL schema migrations **Moved to sonr-io/motr:** - cmd/motr/ - Motor worker service (WASM vault operations) - cmd/vault/ - Vault CLI tool - crypto/ - Comprehensive cryptographic library - packages/ - TypeScript SDK packages (es, sdk, ui, com, pkl) - web/auth/ - Authentication web application - web/dash/ - Dashboard web application **Updated Configuration:** - Makefile: Removed build/test/release targets for moved components - CLAUDE.md: Simplified to focus on core blockchain components - devbox.json: Removed scripts for moved services - docker-compose.yml: Removed hway, postgres, redis, auth, dash services - .github/scopes.yml: Removed CI scopes for migrated components - .goreleaser.yml: Updated release configuration **Added Migration Documentation:** - MIGRATE_HWAY.md: Comprehensive Highway service architecture and migration guide - MIGRATE_MOTR.md: Comprehensive Motor/Worker/Vault architecture and migration guide These migration documents provide complete context for setting up the new repositories including architecture diagrams, component breakdowns, API documentation, and migration checklists. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * No commit suggestions generated * chore: Remove contracts references and documentation Removed all references to the contracts directory that was migrated to a separate repository. **Changes:** - .gitignore: Removed contract-specific ignore patterns for DAO and wSNR contracts - .gitignore: Removed hway and motr binary references (already migrated) - .rgignore: Removed contracts, chains, and crypto directory references - docs/reference/contracts/: Removed DAO.mdx and wSNR.mdx documentation files This completes the cleanup of migrated components from the repository. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * docs: add crypto library migration documentation Added comprehensive migration documentation for the crypto library that was moved to sonr-io/crypto repository. This documentation provides complete context for understanding the cryptographic primitives and protocols used throughout the Sonr ecosystem. ## Key Documentation Added ### MIGRATE_CRYPTO.md Complete documentation of the crypto library covering: **Core Cryptographic Primitives** - Elliptic curve implementations (Ed25519, Secp256k1, P-256, BLS12-381, Pallas/Vesta) - Native curve arithmetic with optimized field operations - Pairing-friendly curves for BLS signatures **Multi-Party Computation (MPC)** - MPC enclave for vault key generation and management - Threshold cryptography (TECDSA, TED25519 with FROST protocol) - Distributed Key Generation (DKG) via Gennaro and FROST protocols - Secret sharing schemes (Shamir, Feldman VSS, Pedersen VSS) **Digital Signature Schemes** - BLS signatures with aggregation support - BBS+ signatures for selective disclosure - Schnorr signatures (standard and Mina/NEM variants) - ECDSA with deterministic nonce generation **Zero-Knowledge Proofs** - Bulletproofs for range proofs - Inner Product Arguments (IPA) - Batch verification support **Advanced Cryptographic Protocols** - Cryptographic accumulators for set membership proofs - Paillier homomorphic encryption - Oblivious Transfer (OT) protocols - Verifiable Random Functions (VRF) **Key Management & Identity** - DID key management with multi-chain support - Multi-algorithm public key handling - Wallet address derivation (Bitcoin, Ethereum, Cosmos, Solana, etc.) **UCAN Integration** - User-Controlled Authorization Networks - Capability delegation and attenuation - JWT-based capability tokens - MPC-enabled UCAN signing **Security Utilities** - AEAD encryption (AES-GCM, AES-SIV) - Argon2 key derivation - ECIES encryption - Secure memory handling ### MIGRATE_MOTR.md Updates Updated Motor migration documentation to clarify that the crypto library is now a separate external dependency at github.com/sonr-io/crypto v1.0.1 ## Repository Context The crypto library has been successfully migrated to its own repository and is published as a Go module. It serves as the foundational cryptographic layer for: - Sonr blockchain (snrd) - DID signatures, vault operations - Highway service (hway) - UCAN token signing, WebAuthn - Motor/Worker (motr) - MPC vault operations, threshold signatures ## Integration Impact All Sonr ecosystem components now depend on the external crypto library: ```go require github.com/sonr-io/crypto v1.0.1 ``` The migration enables independent versioning and maintenance of cryptographic primitives while maintaining security and compatibility across the ecosystem. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * No commit suggestions generated * No commit suggestions generated * No commit suggestions generated --------- Co-authored-by: Claude <noreply@anthropic.com>
226 lines
11 KiB
AMPL
226 lines
11 KiB
AMPL
module github.com/sonr-io/sonr/client
|
|
|
|
go 1.24.7
|
|
|
|
// Replace directive to use the parent module's DWN plugin
|
|
replace github.com/sonr-io/sonr => ../
|
|
|
|
// Inherit necessary replace directives from parent module
|
|
replace (
|
|
cosmossdk.io/core => cosmossdk.io/core v0.11.0
|
|
cosmossdk.io/store => github.com/evmos/cosmos-sdk/store v0.0.0-20240718141609-414cbd051fbe
|
|
github.com/99designs/keyring => github.com/cosmos/keyring v1.2.0
|
|
github.com/cosmos/cosmos-sdk => github.com/strangelove-ventures/cosmos-sdk v0.0.0-20250317212103-0767f8c5b1e5
|
|
github.com/sonr-io/crypto => ../crypto
|
|
github.com/spf13/viper => github.com/spf13/viper v1.17.0
|
|
nhooyr.io/websocket => nhooyr.io/websocket v1.8.17
|
|
)
|
|
|
|
require (
|
|
cosmossdk.io/errors v1.0.1
|
|
cosmossdk.io/math v1.5.0
|
|
github.com/cosmos/cosmos-sdk v0.53.4
|
|
github.com/sonr-io/sonr v0.0.0-00010101000000-000000000000
|
|
github.com/stretchr/testify v1.10.0
|
|
google.golang.org/grpc v1.71.0
|
|
)
|
|
|
|
require (
|
|
cosmossdk.io/api v0.7.6 // indirect
|
|
cosmossdk.io/collections v0.4.0 // indirect
|
|
cosmossdk.io/core v0.12.0 // indirect
|
|
cosmossdk.io/depinject v1.1.0 // indirect
|
|
cosmossdk.io/log v1.5.0 // indirect
|
|
cosmossdk.io/orm v1.0.0-beta.3 // indirect
|
|
cosmossdk.io/store v1.1.1 // indirect
|
|
cosmossdk.io/x/tx v0.13.7 // indirect
|
|
filippo.io/edwards25519 v1.1.0 // indirect
|
|
github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect
|
|
github.com/99designs/keyring v1.2.1 // indirect
|
|
github.com/DataDog/datadog-go v3.2.0+incompatible // indirect
|
|
github.com/DataDog/zstd v1.5.6-0.20230824185856-869dae002e5e // indirect
|
|
github.com/Oudwins/zog v0.21.6 // indirect
|
|
github.com/Workiva/go-datastructures v1.1.3 // indirect
|
|
github.com/asynkron/protoactor-go v0.0.0-20240822202345-3c0e61ca19c9 // indirect
|
|
github.com/beorn7/perks v1.0.1 // indirect
|
|
github.com/bgentry/speakeasy v0.1.1-0.20220910012023-760eaf8b6816 // indirect
|
|
github.com/biter777/countries v1.7.5 // indirect
|
|
github.com/bits-and-blooms/bitset v1.24.0 // indirect
|
|
github.com/btcsuite/btcd/btcec/v2 v2.3.4 // indirect
|
|
github.com/bwesterb/go-ristretto v1.2.3 // indirect
|
|
github.com/bytedance/sonic v1.14.0 // indirect
|
|
github.com/bytedance/sonic/loader v0.3.0 // indirect
|
|
github.com/cenkalti/backoff/v4 v4.3.0 // indirect
|
|
github.com/cespare/xxhash/v2 v2.3.0 // indirect
|
|
github.com/cloudwego/base64x v0.1.5 // indirect
|
|
github.com/cockroachdb/apd/v3 v3.2.1 // indirect
|
|
github.com/cockroachdb/errors v1.11.3 // indirect
|
|
github.com/cockroachdb/fifo v0.0.0-20240606204812-0bbfbd93a7ce // indirect
|
|
github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b // indirect
|
|
github.com/cockroachdb/pebble v1.1.2 // indirect
|
|
github.com/cockroachdb/redact v1.1.5 // indirect
|
|
github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06 // indirect
|
|
github.com/cometbft/cometbft v0.38.17 // indirect
|
|
github.com/cometbft/cometbft-db v0.14.1 // indirect
|
|
github.com/consensys/gnark-crypto v0.19.0 // indirect
|
|
github.com/cosmos/btcutil v1.0.5 // indirect
|
|
github.com/cosmos/cosmos-db v1.1.1 // indirect
|
|
github.com/cosmos/cosmos-proto v1.0.0-beta.5 // indirect
|
|
github.com/cosmos/go-bip39 v1.0.0 // indirect
|
|
github.com/cosmos/gogogateway v1.2.0 // indirect
|
|
github.com/cosmos/gogoproto v1.7.0 // indirect
|
|
github.com/cosmos/iavl v1.2.2 // indirect
|
|
github.com/cosmos/ics23/go v0.11.0 // indirect
|
|
github.com/cosmos/ledger-cosmos-go v0.14.0 // indirect
|
|
github.com/danieljoos/wincred v1.1.2 // indirect
|
|
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
|
|
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.4.0 // indirect
|
|
github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f // indirect
|
|
github.com/dgraph-io/badger/v4 v4.2.0 // indirect
|
|
github.com/dgraph-io/ristretto v0.1.1 // indirect
|
|
github.com/dustin/go-humanize v1.0.1 // indirect
|
|
github.com/dustinxie/ecc v0.0.0-20210511000915-959544187564 // indirect
|
|
github.com/dvsekhvalnov/jose2go v1.6.0 // indirect
|
|
github.com/dylibso/observe-sdk/go v0.0.0-20240819160327-2d926c5d788a // indirect
|
|
github.com/emicklei/dot v1.6.2 // indirect
|
|
github.com/emirpasic/gods v1.18.1 // indirect
|
|
github.com/extism/go-sdk v1.7.1 // indirect
|
|
github.com/fatih/color v1.16.0 // indirect
|
|
github.com/felixge/httpsnoop v1.0.4 // indirect
|
|
github.com/fsnotify/fsnotify v1.7.0 // indirect
|
|
github.com/fxamacker/cbor/v2 v2.9.0 // indirect
|
|
github.com/getsentry/sentry-go v0.27.0 // indirect
|
|
github.com/go-kit/kit v0.13.0 // indirect
|
|
github.com/go-kit/log v0.2.1 // indirect
|
|
github.com/go-logfmt/logfmt v0.6.0 // indirect
|
|
github.com/go-logr/logr v1.4.2 // indirect
|
|
github.com/go-logr/stdr v1.2.2 // indirect
|
|
github.com/gobwas/glob v0.2.3 // indirect
|
|
github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect
|
|
github.com/gogo/googleapis v1.4.1 // indirect
|
|
github.com/gogo/protobuf v1.3.2 // indirect
|
|
github.com/golang-jwt/jwt/v5 v5.3.0 // indirect
|
|
github.com/golang/glog v1.2.4 // indirect
|
|
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
|
|
github.com/golang/protobuf v1.5.4 // indirect
|
|
github.com/golang/snappy v0.0.5-0.20231225225746-43d5d4cd4e0e // indirect
|
|
github.com/google/btree v1.1.3 // indirect
|
|
github.com/google/flatbuffers v23.5.26+incompatible // indirect
|
|
github.com/google/go-cmp v0.7.0 // indirect
|
|
github.com/google/go-tpm v0.9.5 // indirect
|
|
github.com/google/uuid v1.6.0 // indirect
|
|
github.com/gorilla/handlers v1.5.2 // indirect
|
|
github.com/gorilla/mux v1.8.1 // indirect
|
|
github.com/gorilla/websocket v1.5.3 // indirect
|
|
github.com/grpc-ecosystem/go-grpc-middleware v1.4.0 // indirect
|
|
github.com/grpc-ecosystem/grpc-gateway v1.16.0 // indirect
|
|
github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c // indirect
|
|
github.com/gtank/merlin v0.1.1 // indirect
|
|
github.com/hashicorp/go-hclog v1.5.0 // indirect
|
|
github.com/hashicorp/go-immutable-radix v1.3.1 // indirect
|
|
github.com/hashicorp/go-metrics v0.5.3 // indirect
|
|
github.com/hashicorp/go-plugin v1.5.2 // indirect
|
|
github.com/hashicorp/golang-lru v1.0.2 // indirect
|
|
github.com/hashicorp/hcl v1.0.0 // indirect
|
|
github.com/hashicorp/yamux v0.1.1 // indirect
|
|
github.com/hdevalence/ed25519consensus v0.1.0 // indirect
|
|
github.com/huandu/skiplist v1.2.0 // indirect
|
|
github.com/iancoleman/strcase v0.3.0 // indirect
|
|
github.com/ianlancetaylor/demangle v0.0.0-20240805132620-81f5be970eca // indirect
|
|
github.com/improbable-eng/grpc-web v0.15.0 // indirect
|
|
github.com/inconshreveable/mousetrap v1.1.0 // indirect
|
|
github.com/ipfs/go-cid v0.5.0 // indirect
|
|
github.com/jmhodges/levigo v1.0.0 // indirect
|
|
github.com/klauspost/compress v1.18.0 // indirect
|
|
github.com/klauspost/cpuid/v2 v2.2.10 // indirect
|
|
github.com/kr/pretty v0.3.1 // indirect
|
|
github.com/kr/text v0.2.0 // indirect
|
|
github.com/libp2p/go-libp2p v0.43.0 // indirect
|
|
github.com/linxGnu/grocksdb v1.9.8 // indirect
|
|
github.com/lithammer/shortuuid/v4 v4.0.0 // indirect
|
|
github.com/lmittmann/tint v1.0.3 // indirect
|
|
github.com/magiconair/properties v1.8.7 // indirect
|
|
github.com/mattn/go-colorable v0.1.14 // indirect
|
|
github.com/mattn/go-isatty v0.0.20 // indirect
|
|
github.com/mimoo/StrobeGo v0.0.0-20181016162300-f8f6d4d2b643 // indirect
|
|
github.com/minio/sha256-simd v1.0.1 // indirect
|
|
github.com/mitchellh/go-testing-interface v1.14.1 // indirect
|
|
github.com/mitchellh/mapstructure v1.5.0 // indirect
|
|
github.com/mr-tron/base58 v1.2.0 // indirect
|
|
github.com/mtibben/percent v0.2.1 // indirect
|
|
github.com/multiformats/go-base32 v0.1.0 // indirect
|
|
github.com/multiformats/go-base36 v0.2.0 // indirect
|
|
github.com/multiformats/go-multibase v0.2.0 // indirect
|
|
github.com/multiformats/go-multihash v0.2.3 // indirect
|
|
github.com/multiformats/go-varint v0.1.0 // indirect
|
|
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
|
|
github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a // indirect
|
|
github.com/oklog/run v1.1.0 // indirect
|
|
github.com/orcaman/concurrent-map v1.0.0 // indirect
|
|
github.com/pelletier/go-toml/v2 v2.2.2 // indirect
|
|
github.com/petermattis/goid v0.0.0-20240813172612-4fcff4a6cae7 // indirect
|
|
github.com/pkg/errors v0.9.1 // indirect
|
|
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
|
|
github.com/prometheus/client_golang v1.22.0 // indirect
|
|
github.com/prometheus/client_model v0.6.2 // indirect
|
|
github.com/prometheus/common v0.64.0 // indirect
|
|
github.com/prometheus/procfs v0.16.1 // indirect
|
|
github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect
|
|
github.com/rogpeppe/go-internal v1.14.1 // indirect
|
|
github.com/rs/cors v1.11.1 // indirect
|
|
github.com/rs/zerolog v1.33.0 // indirect
|
|
github.com/sagikazarmark/locafero v0.4.0 // indirect
|
|
github.com/sagikazarmark/slog-shim v0.1.0 // indirect
|
|
github.com/sasha-s/go-deadlock v0.3.5 // indirect
|
|
github.com/sonr-io/crypto v0.0.0-00010101000000-000000000000 // indirect
|
|
github.com/sourcegraph/conc v0.3.0 // indirect
|
|
github.com/spaolacci/murmur3 v1.1.0 // indirect
|
|
github.com/spf13/afero v1.11.0 // indirect
|
|
github.com/spf13/cast v1.9.2 // indirect
|
|
github.com/spf13/cobra v1.8.1 // indirect
|
|
github.com/spf13/pflag v1.0.6 // indirect
|
|
github.com/spf13/viper v1.19.0 // indirect
|
|
github.com/subosito/gotenv v1.6.0 // indirect
|
|
github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d // indirect
|
|
github.com/tendermint/go-amino v0.16.0 // indirect
|
|
github.com/tetratelabs/wabin v0.0.0-20230304001439-f6f874872834 // indirect
|
|
github.com/tetratelabs/wazero v1.9.0 // indirect
|
|
github.com/tidwall/btree v1.7.0 // indirect
|
|
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
|
|
github.com/twmb/murmur3 v1.1.8 // indirect
|
|
github.com/x448/float16 v0.8.4 // indirect
|
|
github.com/zondax/hid v0.9.2 // indirect
|
|
github.com/zondax/ledger-go v0.14.3 // indirect
|
|
go.etcd.io/bbolt v1.4.0-alpha.0.0.20240404170359-43604f3112c5 // indirect
|
|
go.opencensus.io v0.24.0 // indirect
|
|
go.opentelemetry.io/auto/sdk v1.1.0 // indirect
|
|
go.opentelemetry.io/otel v1.35.0 // indirect
|
|
go.opentelemetry.io/otel/exporters/prometheus v0.44.0 // indirect
|
|
go.opentelemetry.io/otel/metric v1.35.0 // indirect
|
|
go.opentelemetry.io/otel/sdk v1.34.0 // indirect
|
|
go.opentelemetry.io/otel/sdk/metric v1.34.0 // indirect
|
|
go.opentelemetry.io/otel/trace v1.35.0 // indirect
|
|
go.opentelemetry.io/proto/otlp v1.3.1 // indirect
|
|
go.uber.org/multierr v1.11.0 // indirect
|
|
go.yaml.in/yaml/v2 v2.4.2 // indirect
|
|
golang.org/x/arch v0.3.0 // indirect
|
|
golang.org/x/crypto v0.42.0 // indirect
|
|
golang.org/x/exp v0.0.0-20250606033433-dcc06ee1d476 // indirect
|
|
golang.org/x/net v0.43.0 // indirect
|
|
golang.org/x/sync v0.17.0 // indirect
|
|
golang.org/x/sys v0.36.0 // indirect
|
|
golang.org/x/term v0.35.0 // indirect
|
|
golang.org/x/text v0.29.0 // indirect
|
|
google.golang.org/genproto v0.0.0-20240701130421-f6361c86f094 // indirect
|
|
google.golang.org/genproto/googleapis/api v0.0.0-20250106144421-5f5ef82da422 // indirect
|
|
google.golang.org/genproto/googleapis/rpc v0.0.0-20250324211829-b45e905df463 // indirect
|
|
google.golang.org/protobuf v1.36.6 // indirect
|
|
gopkg.in/ini.v1 v1.67.0 // indirect
|
|
gopkg.in/yaml.v3 v3.0.1 // indirect
|
|
gotest.tools/v3 v3.5.1 // indirect
|
|
lukechampine.com/blake3 v1.4.1 // indirect
|
|
nhooyr.io/websocket v1.8.10 // indirect
|
|
pgregory.net/rapid v1.1.0 // indirect
|
|
sigs.k8s.io/yaml v1.5.0 // indirect
|
|
)
|