Skip to content

Commit

Permalink
Feature/bip32 (#2)
Browse files Browse the repository at this point in the history
* breaking(auth.proto): Added new line of code in the 5th line in the current version.

* fix(go.mod): update dependencies, add direct dep on 'github.com/a-h/templ' v0.2.680
fix(go.sum): update dependencies to new versions

The commit updates the versions of dependencies in go.sum file. The updated dependencies are 'github.com/cenkalti/backoff/v4' to v4.3.0, 'github.com/fatih/color' to v1.16.0 and 'github.com/rs/cors' to v1.11.0.

* feat(.github/workflows): add check-pr.yml to monitor PR events

* breaking(auth.proto): Added new field in 'user' message, removed 'timestamp', and updated comments.
breaking(did.proto): Go package path updated, genesis.proto imported, and public key fields modified.
breaking(state.proto): Message name changed from "Assertion" to "Authenticator", removed "tld" field.
breaking(did.pb.go): Regenerated protobuf definition

* feat(api/did/v1): delete auth.pulsar.go file

* fix(devbox.json): split 'gen' and 'dev' tasks into separate scripts
feat(interchaintest-downloader): add new subproject with commit 74fa7144d84e33377d162e8db9b328bf5e2a3dd5
feat(ui): add new 'exports.go' file in 'ui' package
feat(ui): initialize ui package in pkg/ui/ui.go

* fix(server): change database table in insert method from AssertionTable to AuthenticatorTable
refactor(x/did/types): change Assertion to Authenticator in state.go

* feat: Delete 'interchaintest-downloader' subproject

* feat(.gitignore): add terraform related files to ignore list

* fix(devbox.json): update environment settings and clean shell scripts

* fix(.gitignore): add .DS_Store to ignored files list
chore(crypto): update binary files in .DS_Store
feat(process-compose.yml): Add sonrd command to processes
feat(auth.templ): add createCredential and getCredential functions to `ui` package
feat(auth_templ.go): add createCredential and getCredential functions
feat(x/did/internal/ui): add new auth_templ.txt for tab functionality and form layout

* feat(app): rename ChainApp to SonrApp and initialize proxy in app.go
refactor(app): change ChainApp to SonrApp in msg_filter_test.go
refactor(app): adjust function parameter in 'app/encoding.go' from 'ChainApp' to 'SonrApp'
refactor(app): rename ChainApp to SonrApp in export.go
refactor(app): change ChainApp to SonrApp in sim_test.go setupSimulationApp function
refactor(app): rename ChainApp instances to SonrApp in test_helpers.go
refactor(app): rename ChainApp to SonrApp in test_support.go
refactor(app): rename ChainApp to SonrApp in upgrades.go
fix(cmd/sonrd): replace ChainApp with SonrApp in commands.go
fix(devbox.json): remove 'up' and 'kill' scripts from 'scripts' section
feat(go.mod): add bool64/cache dependency to version v0.4.7
feat: add bool64/cache v0.4.7 to go.sum dependencies
feat(proxy): add cache management functionalities for session and challenge in pkg/proxy/cache.go
feat(proxy): add new file challenge.go with Challenge struct
feat(proxy): add session struct to session.go file
feat(proxy): add new 'token.go' file in 'pkg/proxy' directory
feat(pkg/vault): remove config.go file
feat(pkg/vault): remove ipfs.go file
feat(vault): remove vault.go and associated structures

* breaking(tx.proto): Added UpdateParams function and removed InitializeController details in proto file.

* fix(network): remove redundant error handling in 'runMpcProtocol' function

* breaking(query.proto): Renamed RPC methods and messages for login and register flows.
breaking(tx.proto): Added Authenticate RPC with MsgAuthenticate and MsgAuthenticateResponse messages.
breaking(tx_grpc.pb.go): Regenerated protobuf definition
breaking(tx.pb.go): Regenerated protobuf definition

* bump: version 0.4.0 → 0.5.0

* feat(ipfs): update `SaveVFS` method and remove `GetVFS` in IPFS client
feat(ipfs): add Name method to vfs in pkg/ipfs/vfs.go

* feat(go.mod): update dependencies, add `github.com/ipfs/boxo` and `github.com/spf13/afero`, remove several indirect dependencies
fix: remove unused dependencies from go.sum file
feat(pkg/creds): add new authenticator.go file with Authenticator struct and related functions
feat(pkg/creds): add new credential.go file with WebAuthn credential structs and functions
feat(pkg/creds): add new data.go file with CredentialData struct and associated methods
feat(pkg/kss): add new interfaces for keyshare set, user keyshare & validator keyshare
feat(kss): add new keyshares functionality in kss.go
feat(kss): add new 'usr.go' file in 'pkg/kss' directory
feat(kss): add new package 'kss' in 'val.go' file
feat(mpc): add new package file 'mpc.go'
feat(pkg/vault): remove credential.go file
feat(pkg/vault): add keys.go for key struct and creation methods
feat(vault): remove keyshare.go from the vault package
feat(vault): add new dependencies and constructor to vault.go
refactor(pkg/vault): simplify wallet.go, rename Wallet to WalletData, remove unused types and functions
refactor(controller): remove kss dependency and result calculation in refresh function
fix(network.go): move kss package from crypto to core/pkg and update its usage in NewKeyshareSet function
refactor: update import path for kss in x/did/keeper/keeper.go

* feat(pkg/did): add Bitcoin and Sonr address types and their functions in address.go
feat(mpc.go): add keyshare generation and keyshare protocol running functionality
fix(vault): use did package for creating bitcoin and sonr addresses in keys.go
feat(pkg/zk): add property.go for handling property conversion and secret key derivation
feat(zk): add new zk package implementing SecretKey, Element types and related functions
feat(did/controller): add mpc, zk packages and new functions to controller.go

In the 'did/controller' package, we've integrated 'mpc' and 'zk' from the core package. We've also refactored properties from Properties to zk.Properties, and adjusted functions accordingly. Additionally, new functions for property management including set, check and remove functions, have been introduced.
refactor: update function call from `GenKSS()` to `GenerateKss()` in 'x/did/controller/controller_test.go'
feat(x/did/controller): remove network.go file
fix(property): remove 'property.go' from 'x/did/controller'
feat(x/did/keeper): change function for generating keyshares to mpc.GenerateKss

* chore(go.mod): upgrade Go version to 1.22 and add new dependencies
feat(go.sum): update dependencies version

Update dependencies 'github.com/donseba/go-htmx' to v1.8.0 and 'github.com/golang-jwt/jwt' to v3.2.2.
feat(render.go): add new rendering functions and middleware to htmx package
feat(ui): remove exports.go file
feat(ui): remove 'ui.go' from pkg/ui directory
refactor(pkg/vault): remove unused type definitions in keys.go
refactor(auth.templ): simplify scripts and templates in auth.templ file
feat(did/handlers): update imports and function in register_handler.go
docs(oracle): update README with CoinGecko API link

* chore: fix crypto

* feat: Update IPFS Client

* chore(.gitignore): add '.devon*' to list of ignored files
docs(did/README.md): Expand Concepts and State sections with new definitions
fix(auth.templ): correct indentation for better readability

* breaking(genesis.proto): Added Coin message and updated property, origins, reward rates' positions.
breaking(query_grpc.pb.go): Regenerated protobuf definition
breaking(genesis.pb.go): Regenerated protobuf definition
breaking(query.pb.go): Regenerated protobuf definition
breaking(query.pb.gw.go): Regenerated protobuf definition

* bump: version 0.5.0 → 0.6.0

* fix(crypto/bip32): correct minor typos in code comments
test(crypto/bip32): add new unit tests in bip32_test.go
fix(crypto/bip32): update constants in 'constants.go' file
feat(crypto/bip32): add error handling for invalid field inputs in 'field.go'

* feat(crypto/creds): add authenticator.go with Authenticator struct and methods
feat(crypto/creds): add new credential.go file for WebAuthn credential information storage
feat(crypto/creds): add new file data.go with CredentialData struct and associated methods
feat(crypto/kss): add new 'iface.go' file with key share set interfaces and functions
feat(crypto/kss): add new keyshare set functionality in kss.go
feat(crypto/kss): add new usr.go file
feat(crypto/kss): add new val.go file
feat(crypto/mpc): add mpc.go for keyshare generation and protocol running
refactor(vault): update import paths in vault.go
fix(vault): change import path for kss in wallet.go
refactor(controller): relocate kss and mpc packages in controller.go

Two packages, "kss" and "mpc", have been moved from "core/pkg" to "core/crypto".
refactor: update import path for 'mpc' in x/did/controller/controller_test.go
refactor(x/did/keeper): update import paths for kss and mpc in keeper.go
fix(did/types): change curve model from P256 to K256 in pubkey.go

* breaking(genesis.proto): Added a new string 'hrp' for Bech32 encoding in the proto file.
breaking(genesis.pb.go): Regenerated protobuf definition

* refactor(wallet): merge account.go and coin.go into wallet.go for better code organization
feat(wallet): add CoinType to Account struct to track the type of coin for each account
feat(wallet): modify NewAccount to include address and coin type
feat(wallet): modify NewWallet to create accounts for each coin type
test(wallet): add new test for ComputePublicKey function in wallet_test.go

* feat(creds/data.go): initialize CredentialData with an empty map to prevent nil map assignment errors
feat(vault.go): add default coins to the vault for better wallet initialization
refactor(coins.go): use ethereum library function for address formatting to simplify code and reduce potential errors
fix(coins.go): remove redundant getEthAddress function after refactor

* fix(vault): use specific account address for vault VFS initialization
feat(did/types): add 'sonr.id' to WhitelistedOrigins in genesis.go

* Changes:
- Added a function that enables the ability to check wallet balance.
- Modified the import paths to improve compatibility.
- Fixed a bug where the function to send money was not working properly.

Commit message:
"fix(wallet): correct send money function and add check balance feature in pkg/vault/wallet/wallet.go"
test(vault/wallet): update unit tests in wallet_test.go

* refactor(app): change import path for proxy in app.go
feat(crypto/creds): remove data.go file
refactor(crypto/kss): swap types.PublicKey with crypto.PublicKey in method signatures
refactor(crypto/kss): change PublicKey return type from types.PublicKey to crypto.PublicKey
refactor(crypto/kss): change PublicKey return type to crypto.PublicKey
feat(crypto): add types.go with PublicKey interface definition
feat(crypto/zk): add new file 'property.go' with functionalities for properties conversion and secret key derivation
feat(crypto/zk): add new file 'zk.go' implementing BLS scheme and accumulator methods
feat(controller): add new file 'controller.go' in 'internal/controller' with controller logic
feat(controller_test): add new tests for controller functionality
feat(internal/local): add new file 'daed_key.go'
feat(internal/middleware/htmx): add htmx middleware and response render functions
feat(proxy): add cache configuration and retrieval functions in internal/proxy/cache.go
feat(proxy): add new Challenge struct in challenge.go
feat(proxy): add new Session struct in session.go
feat(internal/proxy): add new file 'token.go'
feat(auth): add new Authenticator struct and methods in pkg/auth/authenticator.go
feat(auth): add logic for WebAuthn credential handling in credential.go
feat(pkg/vault/chain): add new file account.go with Account struct and NewAccount function
feat(pkg/vault/chain): add new coins.go file defining Coin interface and default coins
feat(pkg/vault): add creds.go for credential management in vault
feat(vault/enclave): add new decrypt.go file in pkg/vault/enclave
feat(vault/enclave): add new 'encrypt.go' file in package enclave
feat(vault/enclave): add new 'ring.go' file in 'enclave' package
feat(pkg/vault): add new signer.go file
refactor(vault): remove creds import and replace with auth in vault.go

Add methods to Vault interface for handling credentials. Replace creds.CredentialData with wallet.Wallet in vault struct, and adjust initialization in New function.
feat(wallet): remove wallet.go file from pkg/wallet directory
feat(wallet): remove wallet_test.go
refactor: update import path in register_handler.go
refactor(x/did/keeper): change import path from core/x/did/controller to core/internal/controller
feat(x/did): add register route to router.go

* refactor(crypto/zk): replace types.PublicKey with crypto.PublicKey in DeriveSecretKey function
feat(controller): change PublicKey return type in controller.go
refactor(did/types): replaced PublicKey type with crypto.PublicKey in controller.go

* feat(did): replace runAsyncLocalAuthServer context in commands.go
refactor(did/router): rename RegisterProxy to SetRouterProxy and add SetRouterLocal function
  • Loading branch information
prnk28 committed May 22, 2024
1 parent ffc2ffe commit a1bb472
Show file tree
Hide file tree
Showing 57 changed files with 2,765 additions and 1,277 deletions.
2 changes: 1 addition & 1 deletion .cz.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
name = "cz_conventional_commits"
tag_format = "$version"
version_scheme = "semver"
version = "0.5.0"
version = "0.6.0"
update_changelog_on_bump = true
major_version_zero = true
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
## 0.6.0 (2024-05-21)

### Feat

- Update IPFS Client
- **pkg/did**: add Bitcoin and Sonr address types and their functions in address.go feat(mpc.go): add keyshare generation and keyshare protocol running functionality fix(vault): use did package for creating bitcoin and sonr addresses in keys.go feat(pkg/zk): add property.go for handling property conversion and secret key derivation feat(zk): add new zk package implementing SecretKey, Element types and related functions feat(did/controller): add mpc, zk packages and new functions to controller.go
- **go.mod**: update dependencies, add `github.com/ipfs/boxo` and `github.com/spf13/afero`, remove several indirect dependencies fix: remove unused dependencies from go.sum file feat(pkg/creds): add new authenticator.go file with Authenticator struct and related functions feat(pkg/creds): add new credential.go file with WebAuthn credential structs and functions feat(pkg/creds): add new data.go file with CredentialData struct and associated methods feat(pkg/kss): add new interfaces for keyshare set, user keyshare & validator keyshare feat(kss): add new keyshares functionality in kss.go feat(kss): add new 'usr.go' file in 'pkg/kss' directory feat(kss): add new package 'kss' in 'val.go' file feat(mpc): add new package file 'mpc.go' feat(pkg/vault): remove credential.go file feat(pkg/vault): add keys.go for key struct and creation methods feat(vault): remove keyshare.go from the vault package feat(vault): add new dependencies and constructor to vault.go refactor(pkg/vault): simplify wallet.go, rename Wallet to WalletData, remove unused types and functions refactor(controller): remove kss dependency and result calculation in refresh function fix(network.go): move kss package from crypto to core/pkg and update its usage in NewKeyshareSet function refactor: update import path for kss in x/did/keeper/keeper.go
- **ipfs**: update `SaveVFS` method and remove `GetVFS` in IPFS client feat(ipfs): add Name method to vfs in pkg/ipfs/vfs.go

## 0.5.0 (2024-05-13)

### Feat
Expand Down
Loading

0 comments on commit a1bb472

Please sign in to comment.