consensus/monero/crypto/keypair.go

13 lines
233 B
Go

package crypto
type KeyPair struct {
PrivateKey PrivateKey
PublicKey PublicKey
}
func NewKeyPairFromPrivate(privateKey PrivateKey) *KeyPair {
return &KeyPair{
PrivateKey: privateKey,
PublicKey: privateKey.PublicKey(),
}
}