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

feat(zetaclient): Revamp TSS package #3170

Merged
merged 40 commits into from
Nov 25, 2024
Merged
Changes from 1 commit
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
2e1570d
Streamline tss config
swift1337 Nov 15, 2024
969f17d
Revamp TSS keygen ceremony code
swift1337 Nov 15, 2024
cdd27a8
Refactor tss key sign test; streamline sig verification
swift1337 Nov 15, 2024
39db08a
Remove optional pub key (tss)
swift1337 Nov 18, 2024
e1109fd
Implement PubKey entity
swift1337 Nov 19, 2024
1190db9
Implement new TSS service layer. Add unit tests
swift1337 Nov 19, 2024
82778ed
Add prometheus metrics
swift1337 Nov 19, 2024
ae2479b
Restructure files
swift1337 Nov 19, 2024
62f9c26
Implement TSS Setup Flow
swift1337 Nov 20, 2024
e1c8bfd
Adapt some test cases; fix typo
swift1337 Nov 20, 2024
7f8cdf4
Merge pubkey.go with crypto.go
swift1337 Nov 20, 2024
63a7313
Add tss key pass alongside with hotkey pass
swift1337 Nov 20, 2024
ade21aa
Simplify start.go; drop old tss from zetaclient
swift1337 Nov 20, 2024
c5b10c6
Fix cyclic imports
swift1337 Nov 20, 2024
1657b1a
Revamp TSS mock. Fix unit tests across zetaclient
swift1337 Nov 21, 2024
4dbf3f8
Remove tss historical list from outbound evm cctx
swift1337 Nov 21, 2024
8c7058c
TSS healthcheck
swift1337 Nov 21, 2024
f977b22
Fix flaky case when GetTSS() returns an empty string
swift1337 Nov 21, 2024
034f19f
Update changelog
swift1337 Nov 21, 2024
f7af651
Merge remote-tracking branch 'origin/develop' into feat/zetaclient/ts…
swift1337 Nov 21, 2024
097400d
Fix typos
swift1337 Nov 21, 2024
d6cc841
Forward docker pprof in e2e
swift1337 Nov 21, 2024
b56bf33
Forward pprof in e2e docker
swift1337 Nov 21, 2024
a9229ae
Simplify VerifySignature
swift1337 Nov 21, 2024
8eba16d
Fix typo
swift1337 Nov 21, 2024
f88aca1
Fix batch signature verification
swift1337 Nov 21, 2024
18b7acc
Add readme
swift1337 Nov 21, 2024
b5c367a
Fix typo
swift1337 Nov 21, 2024
3a856c2
Fix typos in healthcheck
swift1337 Nov 22, 2024
1471f12
Address PR comments [1]
swift1337 Nov 22, 2024
44d75a4
Address PR comments [2]
swift1337 Nov 22, 2024
21bc93e
Address PR comments [3] (improve errors clarity)
swift1337 Nov 22, 2024
6036675
Merge branch 'develop' into feat/zetaclient/tss-improvements
swift1337 Nov 22, 2024
e3f43d8
Address PR comments [4]
swift1337 Nov 22, 2024
578bf5e
Remove redundant methods from app context
swift1337 Nov 22, 2024
9b264d9
Address PR comments [5]
swift1337 Nov 22, 2024
14c2de2
Address PR comments [6] (test coverage)
swift1337 Nov 22, 2024
7d9c96b
Fix TSS migration test
swift1337 Nov 22, 2024
95c87d8
Merge branch 'develop' into feat/zetaclient/tss-improvements
swift1337 Nov 22, 2024
2c02cc2
Fix btc issue
swift1337 Nov 22, 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
Prev Previous commit
Next Next commit
Add tss key pass alongside with hotkey pass
swift1337 committed Nov 20, 2024
commit 63a731372124cc5c596f3624a5df3a928b17cb37
12 changes: 11 additions & 1 deletion zetaclient/tss/setup.go
Original file line number Diff line number Diff line change
@@ -33,8 +33,14 @@ type SetupProps struct {
Config config.Config
Zetacore *zetacore.Client
HotKeyPassword string
TSSKeyPassword string
BitcoinChainIDs []int64
PostBlame bool
Telemetry Telemetry
}

type Telemetry interface {
SetP2PID(string)
}

// Setup beefy function that does all the logic for bootstrapping tss-server, tss signer,
@@ -121,13 +127,17 @@ func Setup(ctx context.Context, p SetupProps, logger zerolog.Logger) (*Service,
tssPreParams,
hotPrivateKeyECDSA,
p.Config,
p.HotKeyPassword,
p.TSSKeyPassword,
logger,
)
if err != nil {
return nil, errors.Wrap(err, "unable to start TSS server")
}

if p.Telemetry != nil {
p.Telemetry.SetP2PID(tssServer.GetLocalPeerID())
}

logger.Info().Msg("TSS server started")

// 5. Perform key generation (if needed)