commit inicial do projeto
This commit is contained in:
26
internal/crypto/pq_signer.go
Normal file
26
internal/crypto/pq_signer.go
Normal file
@ -0,0 +1,26 @@
|
||||
package crypto
|
||||
|
||||
import "fmt"
|
||||
|
||||
// PQSigner é um placeholder para um algoritmo de assinatura pós-quântico (ex: Dilithium, Falcon)
|
||||
type PQSigner struct{}
|
||||
|
||||
func (s *PQSigner) GenerateKeys() (string, string, error) {
|
||||
return "", "", fmt.Errorf("PQSigner ainda não implementado")
|
||||
}
|
||||
|
||||
func (s *PQSigner) Sign(message, privKey string) (string, error) {
|
||||
return "", fmt.Errorf("PQSigner ainda não implementado")
|
||||
}
|
||||
|
||||
func (s *PQSigner) Verify(message, signature, pubKey string) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
func (s *PQSigner) Name() string {
|
||||
return "pq"
|
||||
}
|
||||
|
||||
func init() {
|
||||
Register(&PQSigner{})
|
||||
}
|
||||
Reference in New Issue
Block a user