Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
ServiceStruct
n/a
0 / 0
n/a
0 / 0
0
n/a
0 / 0
1<?php
2
3namespace Attestto\SolanaPhpSdk\Accounts\Did;
4
5use Attestto\SolanaPhpSdk\Borsh;
6
7/**
8 * Class ServiceStruct
9 * 
10 * This class represents a service for a Decentralized Identifier (DID) account.
11 * It provides methods for creating and managing services, signing and verifying messages, and other related operations.
12 * @version 1.0
13 * @package Attestto\SolanaPhpSdk\Accounts\Did
14 * @license MIT
15 * @author Eduardo Chongkan
16 * @link https://chongkan.com
17 * @see https://github.com/identity-com/sol-did/tree/develop/sol-did/client/packages/idl
18 * @see https://explorer.solana.com/address/didso1Dpqpm4CsiCjzP766BGY89CAdD6ZBL68cRhFPc/anchor-program?cluster=devnet
19 */ 
20
21class ServiceStruct
22{
23    use Borsh\BorshObject;
24
25    public const SCHEMA = [
26        self::class => [
27            'kind' => 'struct',
28            'fields' => [
29                ['fragment', 'string'],
30                ['serviceType', 'string'],
31                ['serviceEndpoint', 'string']
32            ],
33        ],
34    ];
35}