fair-plugin/inc/packages/did/class-did.php
Ryan McCue 9ce4b13d15
Add installer for FAIR protocol (#71)
Signed-off-by: Ryan McCue <me@ryanmccue.info>
Signed-off-by: Andy Fragen <andy@thefragens.com>
Signed-off-by: costdev <79332690+costdev@users.noreply.github.com>
Signed-off-by: Colin Stewart <79332690+costdev@users.noreply.github.com>
Signed-off-by: Joe Dolson <design@joedolson.com>
Co-authored-by: Andy Fragen <andy@thefragens.com>
Co-authored-by: costdev <79332690+costdev@users.noreply.github.com>
Co-authored-by: Joe Dolson <design@joedolson.com>
2025-07-27 09:37:50 -07:00

32 lines
506 B
PHP

<?php
/**
* DID Interface.
*
* @package FAIR
*/
namespace FAIR\Packages\DID;
interface DID {
/**
* Get the DID method.
*
* One of plc, web.
*/
public function get_method() : string;
/**
* Get the full decentralized ID (DID).
*/
public function get_id() : string;
/**
* Fetch the DID document.
*
* For most DIDs, this will be a remote request, so higher levels should
* cache this as appropriate.
*
* @return Document|\WP_Error
*/
public function fetch_document();
}