solana-php-sdk
solana-php-sdk copied to clipboard
Add DidSolProgram feature
Add DidSolProgram class to interact with DidSolProgram Accounts, containing 3 static methods:
- DidSolProgram::getDidDataAcccountInfo($client, $base58SubjectPk, $onlyAccData = true)
- DidSolProgram::getDidDataAccountId($base58SubjectPk)
- DidSolProgram::deserializeDidData($dataBase64)
Add Accounts/DidData Struct/SCHEME + Accounts/DidData/ServiceStruct + Accounts/DidData/class VerificationMethodStruct, based on the DidSol Program IDL.
References:
DID Spec: https://w3c.github.io/did-core/ DID Method Spec: The did:sol Method v3.0 - A DID Method on the Solana Blockchain GitHub: https://github.com/identity-com/sol-did DidSolProgram: didso1Dpqpm4CsiCjzP766BGY89CAdD6ZBL68cRhFPc
- Adjust the Readme.md to add bit of documentation on how to use the Borsch serialize/deserialize methods.