good morning!!!!

Skip to content
Snippets Groups Projects
Commit 71765957 authored by Viktor Trón's avatar Viktor Trón Committed by Felix Lange
Browse files

get rid of Private Key in ClientIdentity

parent 68205dec
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,6 @@ import (
type ClientIdentity interface {
String() string // human readable identity
Pubkey() []byte // 512-bit public key
PrivKey() []byte // 512-bit private key
}
type SimpleClientIdentity struct {
......@@ -22,7 +21,7 @@ type SimpleClientIdentity struct {
pubkey []byte
}
func NewSimpleClientIdentity(clientIdentifier string, version string, customIdentifier string, privkey []byte, pubkey []byte) *SimpleClientIdentity {
func NewSimpleClientIdentity(clientIdentifier string, version string, customIdentifier string, pubkey []byte) *SimpleClientIdentity {
clientIdentity := &SimpleClientIdentity{
clientIdentifier: clientIdentifier,
version: version,
......@@ -30,7 +29,6 @@ func NewSimpleClientIdentity(clientIdentifier string, version string, customIden
os: runtime.GOOS,
implementation: runtime.Version(),
pubkey: pubkey,
privkey: privkey,
}
return clientIdentity
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment