Package Exports
- @ashwin_dev0x/suiverify-sdk
- @ashwin_dev0x/suiverify-sdk/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@ashwin_dev0x/suiverify-sdk) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
SuiVerify SDK
A TypeScript SDK for verifying Nautilus enclave signatures and DID NFT authenticity on the Sui blockchain.
Features
- ✅ DID NFT Verification - Verify the authenticity of identity NFTs
- ✅ Enclave Signature Validation - Validate Nautilus enclave signatures
- ✅ Ownership Verification - Check NFT ownership
- ✅ Batch Operations - Verify multiple NFTs efficiently
- ✅ TypeScript Support - Full type definitions included
Installation
npm install @suiverify/sdkQuick Start
import { SuiVerifySDK } from '@suiverify/sdk';
// Initialize SDK
const sdk = new SuiVerifySDK({
network: 'testnet',
packageId: '0x...' // Your package ID
});
// Verify a DID NFT
const result = await sdk.verifyDIDNFT('0x...', {
checkOwnership: true,
validateSignature: true
});
if (result.isValid) {
console.log('✅ NFT is authentic!');
} else {
console.log('❌ Verification failed:', result.message);
}API Reference
SuiVerifySDK
Constructor
new SuiVerifySDK(config: SuiVerifyConfig)Methods
verifyDIDNFT(nftObjectId, options?)- Verify a single DID NFTbatchVerifyNFTs(nftObjectIds, options?)- Verify multiple NFTsgetDIDNFTsByOwner(ownerAddress)- Get all DID NFTs for an addressverifyEnclaveSignature(signature)- Verify Nautilus enclave signature
Examples
See the examples/ directory for complete usage examples.
Development
# Install dependencies
npm install
# Build the SDK
npm run build
# Run example
npm run example:basic
# Run tests
npm testLicense
MIT