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

Interface for LocalCosigner #67

Closed
wants to merge 137 commits into from
Closed

Conversation

nitronit
Copy link
Contributor

Implementation and some "refactoring" in to have a Threshold interface. Will potentially enable/ease implementation for other LocalCosigners like HSM etc.

Interface for threshold-signature
Copy link
Member

@agouin agouin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great first pass! Creating the LocalThresholdSignatureImplementation (or similar) in a new file and moving the ThresholdEd25519Signature interface method implementations there will help cleanup the LocalCosigner file so that it will be more generic in application to either a "local" threshold ed25519 signature implementation, or a hardware implementation that will be added in the future.

signer/local_cosigner.go Outdated Show resolved Hide resolved
signer/local_cosigner.go Outdated Show resolved Hide resolved
signer/local_cosigner.go Outdated Show resolved Hide resolved
signer/local_cosigner.go Outdated Show resolved Hide resolved
signer/local_cosigner.go Outdated Show resolved Hide resolved
signer/local_cosigner.go Outdated Show resolved Hide resolved
signer/local_cosigner.go Outdated Show resolved Hide resolved
signer/local_cosigner.go Outdated Show resolved Hide resolved
signer/local_cosigner.go Outdated Show resolved Hide resolved
@nitronit
Copy link
Contributor Author

nitronit commented May 6, 2022

Not the best work I have done but always a start :)
Note that:
pubKeyBytes []byte is duplicated in both LocalCosigner and LocalSigner.
LocalCosigner Config is not factorised yet.

@nitronit nitronit marked this pull request as draft May 9, 2022 11:07
Copy link
Member

@agouin agouin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Almost there! Couple of modifications then should be good to go.
Please also remove the .DS_Store files, would be good to add those to the .gitignore. Also please add out/ to the .gitignore

signer/local_cosigner.go Outdated Show resolved Hide resolved
signer/threshold_ed25519_signature.go Outdated Show resolved Hide resolved
cmd/horcrux/cmd/cosigner.go Outdated Show resolved Hide resolved
signer/local_cosigner.go Outdated Show resolved Hide resolved
@nitronit nitronit marked this pull request as draft November 24, 2022 11:25
@nitronit nitronit marked this pull request as ready for review April 24, 2023 13:57
@nitronit nitronit marked this pull request as draft April 24, 2023 14:01
@nitronit nitronit closed this Dec 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants