forked from strangelove-ventures/horcrux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issues with cosigner and tss packages
- Loading branch information
Showing
8 changed files
with
78 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
package tss | ||
|
||
/* | ||
// Package tss provides functionality related to threshold signature schemes. | ||
// It includes functions for key generation, signing, and verification. | ||
// | ||
// The tss package includes the following primary types: | ||
// | ||
// - Key: Represents a key used in threshold signature schemes. | ||
// | ||
// - Signature: Represents a signature produced by a threshold signature scheme. | ||
// | ||
// - Verifier: Provides functions for verifying signatures. | ||
// | ||
// - Signer: Provides functions for generating signatures. | ||
// | ||
// Example usage: | ||
// | ||
// // Generate a new key. | ||
// key, err := tss.NewKey() | ||
// if err != nil { | ||
// log.Fatalf("failed to generate key: %v", err) | ||
// } | ||
// | ||
// // Create a new signer. | ||
// signer := tss.NewSigner(key) | ||
// | ||
// // Sign a message. | ||
// msg := []byte("hello, world") | ||
// sig, err := signer.Sign(msg) | ||
// if err != nil { | ||
// log.Fatalf("failed to sign message: %v", err) | ||
// } | ||
// | ||
// // Create a new verifier. | ||
// verifier := tss.NewVerifier(key) | ||
// | ||
// // Verify the signature. | ||
// if !verifier.Verify(msg, sig) { | ||
// log.Fatalf("failed to verify signature") | ||
// } | ||
// | ||
// Note: This is a simplified example. The actual usage may be different depending on the specifics of the threshold signature scheme. | ||
*/ |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters