Skip to content

Add crypto provider abstraction - #311

Merged
El-swaggerito merged 2 commits into
Axionvera:mainfrom
220nightmore-spec:feature/crypto-provider-281
Jul 19, 2026
Merged

Add crypto provider abstraction#311
El-swaggerito merged 2 commits into
Axionvera:mainfrom
220nightmore-spec:feature/crypto-provider-281

Conversation

@220nightmore-spec

Copy link
Copy Markdown
Contributor

Summary

  • add a pluggable CryptoProvider interface for digest/sign/verify capabilities
  • add provider validation and CryptoProviderRegistry with default-provider selection and capability lookup
  • add a default NodeDigestCryptoProvider for digest operations only
  • export crypto provider utilities from the SDK entrypoint and document extension/security guidance in docs/CRYPTO_PROVIDER.md

This PR intentionally does not add hardware wallet support, private-key custody, or real signing implementations.

Validation

  • node node_modules/jest/bin/jest.js --config jest.config.js --runTestsByPath tests/crypto/cryptoProvider.test.ts --runInBand --coverage=false
  • node node_modules/eslint/bin/eslint.js src/crypto/cryptoProvider.ts src/crypto/index.ts
  • node node_modules/typescript/bin/tsc --noEmit --pretty false filtered for src/crypto|tests/crypto: no crypto-related errors
  • git diff --cached --check

Full repository typecheck is still blocked by existing main-branch issues unrelated to this PR, including missing @stellar/stellar-sdk/axios declarations, duplicate exports in src/index.ts, and pre-existing websocket/testing/middleware/wallet type errors.

Closes #281

@El-swaggerito
El-swaggerito merged commit d9ee604 into Axionvera:main Jul 19, 2026
1 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SDK Cryptographic Provider Abstraction

2 participants