Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature signers tss 135 #136

Open
wants to merge 29 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
d35b992
✨ feat(signers): gather all signers behind an interface and write fir…
logicalangel May 11, 2024
3d074ed
🐛 fix(tss-sign): fix unit test of tss signing >>> ⏰ 4h
logicalangel May 12, 2024
408f4c0
✨ feat(sprating-identity-and-message-signer-of-tss-and-add-some-comme…
logicalangel May 12, 2024
d7c9a66
🐛 fix(linters): fix naming problem >>> ⏰ 5m
logicalangel May 12, 2024
5acf9bb
✨ feat(frost): remove tss signer and add frost algorithm >>> ⏰ 1.5d
logicalangel May 18, 2024
5a61099
✨ feat(front): delete tss and add frost algothim >>> ⏰ 1.5
logicalangel May 18, 2024
fd2aef4
🐛 fix(tss): remove tss identity >>> ⏰ 5m
logicalangel May 18, 2024
c5395d2
fix: expose key share in frost
logicalangel May 21, 2024
fa736d7
🐛 fix: fix the Confirm function and add aggregate tests
pouya-eghbali May 22, 2024
e3811ca
👷 build: run go mod tidy
pouya-eghbali May 22, 2024
7d877e1
✨ feat(frost): add encode/decode functions and fix some issues >>> ⏰ 4h
logicalangel May 23, 2024
c562944
🐛 fix(eth-rpc): fix problem of race condition for client list >>> ⏰ 1h
logicalangel May 15, 2024
55ded35
🐛 fix(eth-rpc): rename isExist to isFound >>> ⏰ 2m
logicalangel May 15, 2024
e69fbb9
✨ feat: add the new schnorr based pos contract
pouya-eghbali Jun 3, 2024
328c6b8
🎨 style: fix lint
pouya-eghbali Jun 3, 2024
38ee040
✅ test: fix mock contracts
pouya-eghbali Jun 3, 2024
b680a59
✅ test: fix mock modules
pouya-eghbali Jun 3, 2024
b22bee0
fix: display help correctly when no arguments are entered
iDmple Apr 28, 2024
0bc74d4
✨ feat(signers): gather all signers behind an interface and write fir…
logicalangel May 11, 2024
9c47684
✨ feat(frost): remove tss signer and add frost algorithm >>> ⏰ 1.5d
logicalangel May 18, 2024
34b61ca
✨ feat(front): delete tss and add frost algothim >>> ⏰ 1.5
logicalangel May 18, 2024
bbfcdba
♻️ refactor(handler): seprate handler DI and add redis in conn store…
logicalangel Jun 4, 2024
62c5c0f
✨ feat(frost-networking): add network mechanism to init frost party >…
logicalangel Jun 7, 2024
eace34e
🔀 merge(merge): merge to develop >>> ⏰ 30m
logicalangel Jun 7, 2024
d0e23ae
✨ feat(consumer-schedule): split consumer to create schnorr consumer …
logicalangel Jun 8, 2024
75f94d8
🐛 fix(heartbeat): add another configuration to set heartbeat period >…
logicalangel Jun 8, 2024
fa28ac0
✨ feat(frost): implement dkg process >>> ⏰ 4h
logicalangel Jun 11, 2024
f4d718e
✨ feat(frost): add full test for frost and some debuging >>> ⏰ 4h
logicalangel Jun 13, 2024
543a267
✨ feat(frost): add service test >>> ⏰ 3h
logicalangel Jun 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ internal/bin
bin
**/conf.*.private
.idea
/demo.go
2 changes: 2 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ linters-settings:
- "^google.golang.org/protobuf/.+Options$"
- "^gopkg.in/yaml.v3.Node$"

nestif:
min-complexity: 8
funlen:
# should be decreased to 30
lines: 200
Expand Down
1 change: 1 addition & 0 deletions cmd/handler/broker.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ func WithBrokerCmd(cmd *cobra.Command) {
cmd.AddCommand(broker)
}

// init loads CLI flags of broker command.
func init() {
broker.Flags().StringP(
"broker",
Expand Down
1 change: 1 addition & 0 deletions cmd/handler/consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ func WithConsumerCmd(cmd *cobra.Command) {
cmd.AddCommand(consumer)
}

// init loads CLI flags of consumer command.
func init() {
consumer.Flags().StringP(
"broker",
Expand Down
1 change: 1 addition & 0 deletions cmd/handler/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ func WithWorkerCmd(cmd *cobra.Command) {
cmd.AddCommand(worker)
}

// init loads CLI flags of worker command.
func init() {
worker.Flags().StringP(
"broker",
Expand Down
4 changes: 3 additions & 1 deletion cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ var root = &cobra.Command{
},
}

// Unchained entrypoint.
func main() {
handler.WithBrokerCmd(root)
handler.WithConsumerCmd(root)
Expand All @@ -35,10 +36,11 @@ func main() {
}
}

// init loads global CLI flags.
func init() {
root.Flags().BoolVarP(&config.App.System.PrintVersion, "version", "v", false, "Print the Unchained version number and die")
root.PersistentFlags().StringVarP(&config.App.System.ConfigPath, "config", "c", "./conf.yaml", "Config file")
root.PersistentFlags().StringVarP(&config.App.System.SecretsPath, "secrets", "s", "./secrets.yaml", "Secrets file")
root.PersistentFlags().BoolVarP(&config.App.System.AllowGenerateSecrets, "allow-generate-secrets", "g", false, "Allow to generate secrets file if not exists")
root.PersistentFlags().BoolVarP(&config.App.System.AllowGenerateSecrets, "allow-generate-secrets", "a", false, "Allow to generate secrets file if not exists")
root.PersistentFlags().StringVarP(&config.App.System.ContextPath, "context", "x", "./context", "Context DB")
}
2 changes: 1 addition & 1 deletion docker/unchained.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ if ! docker compose version &>/dev/null; then
exit 1
fi

if [ ! $1 == 'worker' ] && [ ! $1 == 'standalone' ]; then #&& [ ! $1 == 'remote' ] && [ ! $1 == 'lite' ] || [ -z $2 ]; then
if [ ! $1 == 'worker' ] && [ ! $1 == 'standalone' ] || [ -z $1 ] || [ -z $2 ] ; then #&& [ ! $1 == 'remote' ] && [ ! $1 == 'lite' ] || [ -z $2 ]; then
usage
exit 1
fi
Expand Down
21 changes: 19 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ require (
entgo.io/ent v0.13.1
github.com/99designs/gqlgen v0.17.45
github.com/btcsuite/btcutil v1.0.2
github.com/bytemare/crypto v0.5.2
github.com/bytemare/frost v0.0.0-20231127024126-bc6f7874b253
github.com/consensys/gnark-crypto v0.12.1
github.com/dgraph-io/badger/v4 v4.2.0
github.com/ethereum/go-ethereum v1.13.14
Expand All @@ -22,8 +24,10 @@ require (
github.com/peterldowns/pgtestdb v0.0.14
github.com/pouya-eghbali/go-sia/v2 v2.1.0
github.com/puzpuzpuz/xsync/v3 v3.1.0
github.com/redis/go-redis/v9 v9.5.2
github.com/spf13/cobra v1.8.0
github.com/stretchr/testify v1.9.0
github.com/taurusgroup/multi-party-sig v0.6.0-alpha-2021-09-21
github.com/vektah/gqlparser/v2 v2.5.11
golang.org/x/crypto v0.21.0
golang.org/x/sync v0.6.0
Expand All @@ -33,6 +37,8 @@ require (

require (
ariga.io/atlas v0.20.0 // indirect
filippo.io/edwards25519 v1.0.0 // indirect
filippo.io/nistec v0.0.2 // indirect
github.com/BurntSushi/toml v1.3.2 // indirect
github.com/DataDog/zstd v1.4.5 // indirect
github.com/Microsoft/go-winio v0.6.1 // indirect
Expand All @@ -42,8 +48,12 @@ require (
github.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/bits-and-blooms/bitset v1.13.0 // indirect
github.com/btcsuite/btcd/btcec/v2 v2.3.2 // indirect
github.com/btcsuite/btcd/chaincfg/chainhash v1.1.0 // indirect
github.com/btcsuite/btcd v0.20.1-beta // indirect
github.com/btcsuite/btcd/btcec/v2 v2.2.0 // indirect
github.com/bytemare/hash v0.1.5 // indirect
github.com/bytemare/hash2curve v0.2.2 // indirect
github.com/bytemare/secp256k1 v0.1.0 // indirect
github.com/bytemare/secret-sharing v0.1.0 // indirect
github.com/cespare/xxhash/v2 v2.2.0 // indirect
github.com/cockroachdb/errors v1.8.1 // indirect
github.com/cockroachdb/logtags v0.0.0-20190617123548-eb05cc24525f // indirect
Expand All @@ -55,14 +65,18 @@ require (
github.com/cpuguy83/go-md2man/v2 v2.0.3 // indirect
github.com/crate-crypto/go-ipa v0.0.0-20231025140028-3c0104f4b233 // indirect
github.com/crate-crypto/go-kzg-4844 v0.7.0 // indirect
github.com/cronokirby/safenum v0.29.0 // indirect
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
github.com/deckarep/golang-set/v2 v2.6.0 // indirect
github.com/decred/dcrd/dcrec/secp256k1/v3 v3.0.0 // indirect
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 // indirect
github.com/dgraph-io/ristretto v0.1.1 // indirect
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect
github.com/dustin/go-humanize v1.0.1 // indirect
github.com/ethereum/c-kzg-4844 v1.0.0 // indirect
github.com/fjl/memsize v0.0.2 // indirect
github.com/fsnotify/fsnotify v1.7.0 // indirect
github.com/fxamacker/cbor/v2 v2.3.0 // indirect
github.com/gballet/go-libpcsclite v0.0.0-20190607065134-2772fd86a8ff // indirect
github.com/gballet/go-verkle v0.1.1-0.20231031103413-a67434b50f46 // indirect
github.com/go-ole/go-ole v1.3.0 // indirect
Expand All @@ -77,6 +91,7 @@ require (
github.com/google/flatbuffers v24.3.7+incompatible // indirect
github.com/google/go-cmp v0.6.0 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/gtank/ristretto255 v0.1.2 // indirect
github.com/hashicorp/errwrap v1.1.0 // indirect
github.com/hashicorp/go-bexpr v0.1.10 // indirect
github.com/hashicorp/hcl/v2 v2.20.0 // indirect
Expand Down Expand Up @@ -126,9 +141,11 @@ require (
github.com/urfave/cli/v2 v2.27.1 // indirect
github.com/vmihailenco/msgpack/v5 v5.4.1 // indirect
github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect
github.com/x448/float16 v0.8.4 // indirect
github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect
github.com/yusufpapurcu/wmi v1.2.4 // indirect
github.com/zclconf/go-cty v1.14.4 // indirect
github.com/zeebo/blake3 v0.2.0 // indirect
go.opencensus.io v0.24.0 // indirect
golang.org/x/exp v0.0.0-20240318143956-a85f2c67cd81 // indirect
golang.org/x/mod v0.16.0 // indirect
Expand Down
Loading