mirror of
https://github.com/number571/go-peer.git
synced 2026-09-14 11:05:42 +05:00
quantum update
This commit is contained in:
parent
c021ac76fd
commit
5872cc42e3
@ -4,5 +4,5 @@
|
||||
|
||||
```bash
|
||||
usage:
|
||||
./main -size=[key-size]
|
||||
go run .
|
||||
```
|
||||
|
||||
@ -1,5 +0,0 @@
|
||||
package main
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestNothing(_ *testing.T) {}
|
||||
@ -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
|
||||
```
|
||||
|
||||
@ -1,5 +0,0 @@
|
||||
package main
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestNothing(_ *testing.T) {}
|
||||
@ -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()
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user