Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
VerificationMethodStruct
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 VerificationMethodStruct
9 * 
10 * This class represents a verification method for a Decentralized Identifier (DID) account.
11 * It provides methods for creating and managing verification methods, 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 */
20class VerificationMethodStruct
21{
22    use Borsh\BorshObject;
23
24    public const SCHEMA = [
25        self::class => [
26            'kind' => 'struct',
27            'fields' => [
28                ['fragment', 'string'],
29                ['flags', 'u16'],
30                ['methodType', 'u8'],
31                ['keyData', 'bytes']
32            ],
33        ],
34    ];
35}