Add KeyPair class to manage public and private keys

This commit is contained in:
netkas 2024-09-13 13:50:18 -04:00
parent ee4aeecf22
commit e3d9b2f3be

View file

@ -0,0 +1,25 @@
<?php
namespace Socialbox\Objects;
class KeyPair
{
private string $publicKey;
private string $privateKey;
public function __construct(string $publicKey, string $privateKey)
{
$this->publicKey = $publicKey;
$this->privateKey = $privateKey;
}
public function getPublicKey(): string
{
return $this->publicKey;
}
public function getPrivateKey(): string
{
return $this->privateKey;
}
}