@sovrahq/holder-core
v0.1.0
Published
Platform-agnostic core for a Sovra credential holder/wallet: SD-JWT VC handling, OpenID4VCI/VP protocol flows, credential storage, and P-256/EIP-712 crypto utilities.
Downloads
84
Readme
@sovrahq/holder-core
Platform-agnostic core for a Sovra credential holder/wallet. It bundles the logic a holder app needs, independent of any specific runtime (React Native, browser, …):
- Platform interfaces —
SecureStorage,PasskeyProvider,CameraScannercontracts the host app implements. - API client —
ApiClientfor issuer/auth-server metadata and token exchange. - State stores —
createCredentialStore,createApprovalStore(Zustand). - Credential manager —
CredentialManagerfor parsing/handling SD-JWT VCs. - Protocol flows —
IssuanceProtocol(OpenID4VCI) andPresentationProtocol(OpenID4VP). - Crypto utilities —
keccak256,sha256, P-256 signing, and EIP-712 helpers (exported from@sovrahq/holder-core/utils).
Install
npm install @sovrahq/holder-coreUsage
import { ApiClient, CredentialManager } from "@sovrahq/holder-core";
import { base64urlEncode } from "@sovrahq/holder-core/utils";The published package ships compiled JavaScript and type declarations from dist/.
