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

Refactor 3.2.2 #231

Open
wants to merge 42 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
ec2950a
Move block and serialization related types and functions to types
nitronit Dec 5, 2023
bbba0cd
Fix cache variable name and refactor locking in sign_state.go and thr…
nitronit Dec 5, 2023
64af51e
Fix import formatting and add missing imports
nitronit Dec 5, 2023
fbf90af
Add htypes package alias for github.com/strangelove-ventures/horcrux/…
nitronit Dec 6, 2023
b5033ad
Add nonce related types to pkg/types
nitronit Dec 8, 2023
9a73088
Fix formatting issues in address.go, config_test.go, state.go, state_…
nitronit Dec 9, 2023
d297fa4
Refactor threshold signer key loading and creation
nitronit Dec 9, 2023
eca9760
Add Block struct and methods, and fix chainState type in LocalCosigner
nitronit Dec 15, 2023
dfeab36
Refactor code and update comments
nitronit Dec 18, 2023
3ee2bd1
Update function names and add missing imports + metrics factorization
nitronit Dec 18, 2023
e7db1ea
Merge branch 'main' of https://github.com/strangelove-ventures/horcru…
nitronit Dec 18, 2023
88f0a31
go fmt:ed
nitronit Dec 18, 2023
d0ff41f
Refactor code to use new package structure
nitronit Dec 19, 2023
44881fd
Refactor cosigner security initialization
nitronit Dec 19, 2023
9439ccf
Update Go packages and fix test cases
nitronit Dec 19, 2023
95a1cba
Refactor cosigner health test and raft store test
nitronit Dec 19, 2023
731103a
Refactor mock leader in nonce cache tests
nitronit Dec 19, 2023
5489c5e
Refactor sign mode flag and fix formatting in cosigner_security_ecies.go
nitronit Dec 19, 2023
761c7ff
Just testing it works exluding some tests.
nitronit Dec 19, 2023
ae0123a
lint
nitronit Dec 19, 2023
ff8502d
Refactor RemoteCosigner initialization and update test case
nitronit Dec 19, 2023
727846c
Update package imports and variable names
nitronit Dec 21, 2023
6dac3f3
Update import statements for tss package. Changed name from temp to tss
nitronit Dec 21, 2023
d222ee6
Add ICosignerSecurity interface for cosigner security layer
nitronit Dec 21, 2023
35e5f1f
Update cosigner to mycosigner in raft_events.go and raft_store.go
nitronit Dec 21, 2023
adce5e8
Refactor MockLeader struct and update type of leader variable
nitronit Dec 21, 2023
5f854ad
Update interface names in signer package
nitronit Dec 21, 2023
e5409d9
Fix variable assignment and method name in local_cosigner.go and bloc…
nitronit Dec 21, 2023
22c6dbd
Add Ed25519Key struct and update references
nitronit Dec 23, 2023
6011f98
Remove privval.FilePVKey from VaultPrivateKey interface
nitronit Dec 23, 2023
7f94824
Fix issues with cosigner and tss packages
nitronit Dec 23, 2023
abeebc6
Refactor cosigner package and add ted25519SignerSoft type
nitronit Dec 23, 2023
31f7684
Add new files and update existing code
nitronit Dec 26, 2023
c804cd8
Add threshold dealer interface and implementation
nitronit Dec 27, 2023
a9cc824
Refactor cosigner package and interfaces
nitronit Dec 28, 2023
7d4c8b6
Add new files and interfaces for cosigner and threshold signer
nitronit Jan 6, 2024
9d5bf25
Update import paths in test files
nitronit Jan 6, 2024
493d6af
Reorg files and update imports, and fix some tests
nitronit Jan 16, 2024
d485298
Fix sign mode comment formatting
nitronit Jan 16, 2024
063e0d2
refactor and name change
nitronit Jan 28, 2024
2e39f23
node changes
nitronit Jan 28, 2024
e16edda
Fix import paths and update dependencies
nitronit Feb 16, 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
Update import paths in test files
nitronit committed Jan 6, 2024
commit 9d5bf257d47d92d1bff6cd22f6ec0663f8ace9e9
2 changes: 1 addition & 1 deletion src/cond/cond_test.go
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ import (
"sync"
"testing"

"github.com/strangelove-ventures/horcrux/node/cond"
"github.com/strangelove-ventures/horcrux/src/cond"
"github.com/stretchr/testify/require"
)

2 changes: 1 addition & 1 deletion src/cosigner/server.go
Original file line number Diff line number Diff line change
@@ -59,7 +59,7 @@ func NewLocalCosigner(
security: security,
address: address,
nonces: make(map[uuid.UUID]*types.NoncesWithExpiration),
dealer: tss.NewThresholdEd25519DealerSoft(config),
//dealer: tss.NewThresholdEd25519DealerSoft(config),
}
}

4 changes: 2 additions & 2 deletions src/multiresolver/multi_test.go
Original file line number Diff line number Diff line change
@@ -11,8 +11,8 @@ import (

grpcretry "github.com/grpc-ecosystem/go-grpc-middleware/retry"
"github.com/strangelove-ventures/horcrux/node"
"github.com/strangelove-ventures/horcrux/node/multiresolver"
"github.com/strangelove-ventures/horcrux/node/proto"
"github.com/strangelove-ventures/horcrux/src/multiresolver"
"github.com/strangelove-ventures/horcrux/src/proto"
"github.com/stretchr/testify/require"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials/insecure"