JSPM

@ashwin_dev0x/suiverify-sdk

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q58203F
  • License MIT

SuiVerify SDK for verifying Nautilus signatures and DID NFT authenticity

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/sdk

Quick 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 NFT
  • batchVerifyNFTs(nftObjectIds, options?) - Verify multiple NFTs
  • getDIDNFTsByOwner(ownerAddress) - Get all DID NFTs for an address
  • verifyEnclaveSignature(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 test

License

MIT