quantum update

This commit is contained in:
number571 2024-10-18 16:37:54 +07:00
parent c021ac76fd
commit 5872cc42e3
5 changed files with 4 additions and 16 deletions

View File

@ -4,5 +4,5 @@
```bash
usage:
./main -size=[key-size]
go run .
```

View File

@ -1,5 +0,0 @@
package main
import "testing"
func TestNothing(_ *testing.T) {}

View File

@ -16,10 +16,10 @@ EOL - End of Line (Enter)
```bash
$ go run . -salt="service-name" -work=24
master-key
EvCqIyPVq9ydjspox6GqN63ggT0xrUfNFnFgwAy1odQ0
J64mESAVm2o-8q6nWaywsoQbQvn8pf7U74O-Vr9HwSDu
```
```bash
$ echo "master-key" | go run . -salt="service-name" -work=24
EvCqIyPVq9ydjspox6GqN63ggT0xrUfNFnFgwAy1odQ0
J64mESAVm2o-8q6nWaywsoQbQvn8pf7U74O-Vr9HwSDu
```

View File

@ -1,5 +0,0 @@
package main
import "testing"
func TestNothing(_ *testing.T) {}

View File

@ -61,7 +61,5 @@ func (p *sListPubKeys) DelPubKey(pPubKey IPubKey) {
}
func hashkey(pSignPubKey ISignPubKey) string {
return hashing.NewHasher(
pSignPubKey.ToBytes(),
).ToString()
return hashing.NewHasher(pSignPubKey.ToBytes()).ToString()
}