* 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>
* refactor: rename project from onsonr/sonr to sonr-io/snrd (#1249)
* refactor: rename project from onsonr/sonr to sonr-io/snrd
* refactor: update package paths to use sonr-io org
---------
Co-authored-by: Prad N <prad@didao.xyz>
* feat: introduce devbox for consistent development environment
* feat: integrate Doppler for secrets management
* feat: streamline release process with Devbox
* <no value>
* bump: version 0.6.3 → 0.6.4
* feat: enable commit-less version bumping
* bump: version 0.6.4 → 0.6.5
* feat: streamline release process and update project metadata
* feat: streamline build process and configuration
* feat: streamline build process by removing release target
* bump: version 0.6.5 → 0.6.6
* feat: upgrade to go 1.24 and align binary name
* bump: version 0.6.6 → 0.6.7
* feat: streamline release process and update project metadata
* bump: version 0.6.3 → 0.6.4
* feat: streamline development and release processes
* feat: streamline development and release processes
* refactor: streamline release process with Taskfile
* feat: enhance goreleaser output with title for better UX
* feat: consolidate release notes
* bump: version 0.6.3 → 0.6.4
* feat: streamline release process with improved automation
* feat: streamline development and release workflow
* bump: version 0.6.3 → 0.6.4
* feat: streamline release process with Taskfile and conventional commits
* bump: version 0.6.4 → 0.6.5
* feat: enhance Docker image publishing with piped credentials
* chore: remove outdated changelog entries
* bump: version 0.6.3 → 0.6.4
* feat: improve release process with interactive feedback
* feat: enhance release process with real-time version feedback
* bump: version 0.6.4 → 0.6.5
* feat: enhance release process with dynamic version display and streamlined automation
* bump: version 0.6.3 → 0.6.4
* refactor: streamline release process by removing redundant version display
* bump: version 0.6.4 → 0.6.5
* refactor: streamline release process and simplify dev environment
* bump: version 0.6.3 → 0.6.4
* ci: simplify PR checks by removing redundant release validation
* refactor: consolidate release workflows for improved maintainability
* ci: enhance release workflow for automated version publishing
---------
Co-authored-by: Prad N <prad@didao.xyz>
* feat: add docs and CI workflow for publishing to onsonr.dev
* (refactor): Move hway,motr executables to their own repos
* feat: simplify devnet and testnet configurations
* refactor: update import path for didcrypto package
* docs(networks): Add README with project overview, architecture, and community links
* refactor: Move network configurations to deploy directory
* build: update golang version to 1.23
* refactor: move logger interface to appropriate package
* refactor: Move devnet configuration to networks/devnet
* chore: improve release process with date variable
* (chore): Move Crypto Library
* refactor: improve code structure and readability in DID module
* feat: integrate Trunk CI checks
* ci: optimize CI workflow by removing redundant build jobs
---------
Co-authored-by: Darp Alakun <i@prad.nu>
* fix/hway-db-driver
* fix/hway-db-driver
* chore(scripts): add tx indexer and psql connection to test
* fix(scripts): make testnet setup more robust and configurable
* refactor: remove redundant branch trigger for scheduled releases
* refactor: simplify process-compose commands and improve logging
* refactor: remove redundant command
* refactor: remove unused error variables and simplify database configuration
* feat: introduce task runner for project automation
* refactor: Remove hardcoded action and method from form components
* refactor: move server setup to main.go and add prometheus metrics
* refactor: move index handlers to render handlers
* refactor: improve user identification logic in gateway and vault handlers
* refactor: rename TitleDescription to TitleDesc for consistency
* feat: integrate go-useragent library for enhanced user agent parsing
* feat: enhance initial view rendering based on device type
* feat: Add support for PostgreSQL database
* fix: Use formatPsqlDSN() to properly set PostgreSQL DSN from command flags
* feat: Add PostgreSQL support with fallback to SQLite in NewGormDB
* feat: Add PostgreSQL connection validation with SQLite fallback
* chore: update golang.org/x/crypto dependency to v0.31.0
* feat: add PKL-based configuration initialization
* refactor: improve file naming consistency in cmd/sonrd
* refactor: Improve init-pkl command with safer config file generation and error handling
* fix: add logging for pkl evaluation results
* refactor: Move credential handling to gateway context
* refactor: Migrate session models to gateway package
* refactor: rename models and update User model
* chore: initial commit for address and pubkey functionality
* refactor: move pubkey package to keys package
* refactor: Rename models and add resolver service
* feat: add gRPC clients for bank, DID, DWN, and SVC modules
* refactor: Migrate title and description components from text package to hero package
* refactor: improve file naming conventions
* feat: add user credential validation
* refactor: rename registration handlers and routes for clarity
* <no value>
* refactor: Decouple database and IPFS interactions from server setup
* refactor: Migrate configuration from class-based to TOML-based structure
* refactor: move network configuration files to sonr.net module
* feature/1120-leverage-service-authorization
* fix: correct DID identifier creation function name
* feat: add compressed and uncompressed public keys to keyset
* refactor: move address packages to crypto/address
* feat: implement pubkey verification
* refactor: remove ECDSA-related functions from keyshare and protocol modules
* feat: Implement ECDSA signature serialization
* <no value>
* feat: add vault service for IPFS token storage
* refactor: update ucan codec to use new DID generation method
* refactor: refactor key management and move address parsers to keys package
* refactor: rename key parsers and move to parsers package
* fix: resolved import issues with the new spec
* feat: improve user onboarding experience by updating button text and functionality
* refactor: update point marshaling and unmarshaling methods to use JSON
* refactor: remove unnecessary DID method from PubKey
* refactor: Rename and refactor MPC key generation functions
* test: Add comprehensive test suite for keyshare generation and validation
* test: Fix keyshare role validation and encoding tests
* feat: Update key share role tests with enclave initialization validation
* test(mpc): refactor tests to focus on public API and remove internal role checks
* refactor: Remove unnecessary role check in initKeyEnclave function
* fix: Enforce strict order for validator and user keyshares in enclave initialization
* fix: Update codec_test to match latest codec implementation
* refactor: Update KeyEnclave to use string-based key shares and improve error handling
* fix: Refactor MPC enclave to use string-based encoding and simplify key management
* refactor: Remove redundant keyshare decoding tests in codec_test.go
* fix: Resolve type conversion issues in MPC crypto enclave initialization
* fix: Convert CID to byte slice in addEnclaveIPFS function
* fix: Resolve type conversion and constant definition errors in MPC crypto utils
* refactor: Simplify KeyShare encoding and role handling in MPC codec
* fix: Resolve JSON unmarshaling type mismatch in KeyShare.Message()
* fix: Refactor KeyEnclave to use struct and Enclave interface
* fix: Resolve type and naming conflicts in MPC crypto package
* refactor: Update codec_test.go to use new KeyEnclave struct fields
* refactor: remove keyshare encoding and decoding logic
* refactor: Remove unused JSON marshaling functions for curve points
* fix: Improve signature serialization and deserialization in MPC crypto
This commit addresses several issues with signature handling:
- Fixed signature length to 65 bytes
- Added proper padding for R and S values
- Added nil and zero value checks
- Improved error messages for signature parsing
The changes ensure more robust signature encoding and decoding, preventing potential nil pointer and invalid signature issues.
* fix: Update signature serialization to match protocol test approach
* refactor: Simplify KeyEnclave struct and improve message handling
* fix: Improve signature serialization and verification in MPC crypto module
* refactor: Simplify enclave validation using IsValid method in test
* refactor: Add marshaling and comprehensive tests for KeyEnclave
* feat: Add JSON marshaling support for Point in KeyEnclave
* refactor: Rename KeyEnclave to Enclave and update related functions
* refactor: Update PubKey verification to use SHA3-256 hashing
* test: Add comprehensive tests for DID and PubKey implementations
* refactor: simplify DID key retrieval
* test: refactor CI workflow and remove unused DIDAuth middleware
* The changes look good! The updated workflows will now:
1. Run tests on push to master
2. Bump the version if the commit doesn't already start with 'bump:'
3. Trigger a release workflow automatically with the new version tag
4. Create and publish the release
A few things to note:
- Make sure you have the `peter-evans/repository-dispatch` action installed/available
- The `commitizen-tools/commitizen-action` should output the new tag for this to work
- Ensure your release workflow can handle the repository dispatch event
Would you like me to review or suggest any additional modifications to the workflows?
* ci(github actions): add build stage dependency for tests
* fix(workflow): update workflow to trigger on PR edits
* test: Update unit test dependencies
* ci: Add GoReleaser dry-run check for merge group events
* test: remove unnecessary dependencies between test jobs
* ci: Make race and coverage tests depend on build tests
<!--- Provide a general summary of your changes in the Title above -->
## Description
fix some function names in comment
## Related Issue(s)
<!--- This project only accepts pull requests related to open issues -->
<!--- If suggesting a new feature or change, please discuss it in an
issue first -->
<!--- If fixing a bug, there should be an issue describing it with steps
to reproduce -->
<!--- Please link to the issue here: -->
## Motivation and Context
<!--- Why is this change required? What problem does it solve? -->
<!--- If it fixes an open issue, please link to the issue here. -->
## How Has This Been Tested?
<!--- Please describe in detail how you tested your changes. -->
<!--- Include details of your testing environment, and the tests you ran
to -->
<!--- see how your change affects other areas of the code, etc. -->
## Screenshots (if appropriate):
Signed-off-by: cuiyourong <cuiyourong@gmail.com>