Something went wrong. Try again.
A barebones implementation of an atproto PDS in PHP and Slim Framework 4.
pds php atproto
Something went wrong. Try again.
123456789101112131415161718192021222324<?php
declare(strict_types=1);
namespace App\Domain\Crypto;
interface KeypairFactory{ /** * Generate a fresh keypair using a cryptographically secure RNG. */ public function generate(): Keypair;
/** * Reconstruct a keypair from previously-exported raw private-key bytes. */ public function fromPrivateKeyBytes(string $privateKey): Keypair;
/** * Load from a hex-encoded private key (no `0x` prefix). */ public function fromPrivateKeyHex(string $hex): Keypair;}