13 lines
No EOL
233 B
Go
13 lines
No EOL
233 B
Go
package crypto
|
|
|
|
type KeyPair struct {
|
|
PrivateKey PrivateKey
|
|
PublicKey PublicKey
|
|
}
|
|
|
|
func NewKeyPairFromPrivate(privateKey PrivateKey) *KeyPair {
|
|
return &KeyPair{
|
|
PrivateKey: privateKey,
|
|
PublicKey: privateKey.PublicKey(),
|
|
}
|
|
} |