{"_id":"@abcwalletio/aptos","name":"@abcwalletio/aptos","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@abcwalletio/aptos","version":"1.0.0","description":"ABC WaaS Aptos adapter — MPC-based AIP-62 Wallet Standard compatible wallet (ed25519)","keywords":["waas","aptos","aip-62","wallet-standard","ed25519","mpc"],"license":"MIT","author":{"name":"Ahnlab Blockchain Company"},"homepage":"http://abcwaas.com/","publishConfig":{"access":"public"},"engines":{"node":">=18.0.0"},"sideEffects":false,"type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"peerDependencies":{"@aptos-labs/ts-sdk":">=1.0.0","@aptos-labs/wallet-standard":">=1.0.0","@wallet-standard/base":">=1.0.0","@wallet-standard/wallet":">=1.0.0","@abcwalletio/core":"^1.0.0"},"devDependencies":{"@aptos-labs/ts-sdk":"^1.35.0","@aptos-labs/wallet-standard":"^1.0.0","@wallet-standard/base":"^1.1.0","@wallet-standard/wallet":"^1.1.0","tsup":"^8.0.0","typescript":"^5.4.0","vitest":"^1.4.0","@abcwalletio/core":"^1.0.0"},"scripts":{"build":"tsup","dev":"tsup --watch","typecheck":"tsc --noEmit","test":"vitest run"},"_id":"@abcwalletio/aptos@1.0.0","_integrity":"sha512-e5rduazK9MvVtNAHBpGQrl0mXlhaRxieV1kUu1Zc4HO0REaXJTtKiyQGCtCqehLe6UygLIFDjKsgfummP0FWuQ==","_resolved":"/private/var/folders/lt/4x5qd11x2wl8sh4gvr7y0pp80000gn/T/fe78e59cb59f1f8e4f31eaae40838be1/abcwalletio-aptos-1.0.0.tgz","_from":"file:abcwalletio-aptos-1.0.0.tgz","_nodeVersion":"24.13.0","_npmVersion":"11.6.2","dist":{"integrity":"sha512-e5rduazK9MvVtNAHBpGQrl0mXlhaRxieV1kUu1Zc4HO0REaXJTtKiyQGCtCqehLe6UygLIFDjKsgfummP0FWuQ==","shasum":"46f5fb8f9891d990ecffee9ecfb32cdea4ea22bf","tarball":"https://registry.npmjs.org/@abcwalletio/aptos/-/aptos-1.0.0.tgz","fileCount":9,"unpackedSize":43959,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIAYTacpeE92FWk4xPahwh8dw7cLBEYr0AxamWzDo0PcSAiEAklozVbw7DEvNblGxrhcB+aE16Nu83Gs6ZxMSnjBO3kA="}]},"_npmUser":{"name":"theo_ahnlabio","email":"theo@ahnlab.com"},"directories":{},"maintainers":[{"name":"abc-admin","email":"abc_it@ahnlab.com"},{"name":"1kko-abc","email":"1kko@ahnlab.com"},{"name":"theo_ahnlabio","email":"theo@ahnlab.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/aptos_1.0.0_1776818567893_0.5792289928914285"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-22T00:42:47.792Z","1.0.0":"2026-04-22T00:42:48.084Z","modified":"2026-04-22T00:42:48.344Z"},"maintainers":[{"name":"abc-admin","email":"abc_it@ahnlab.com"},{"name":"1kko-abc","email":"1kko@ahnlab.com"},{"name":"theo_ahnlabio","email":"theo@ahnlab.com"}],"description":"ABC WaaS Aptos adapter — MPC-based AIP-62 Wallet Standard compatible wallet (ed25519)","homepage":"http://abcwaas.com/","keywords":["waas","aptos","aip-62","wallet-standard","ed25519","mpc"],"author":{"name":"Ahnlab Blockchain Company"},"license":"MIT","readme":"# @abcwalletio/aptos\n\nABC WaaS SDK의 Aptos 체인 어댑터입니다. [AIP-62 Wallet Standard](https://github.com/aptos-labs/AIP/blob/main/aips/aip-62.md)를\n구현하므로 `@aptos-labs/wallet-adapter-react`가 어댑터를 자동 감지합니다.\n\n## Installation\n\n```bash\npnpm add @abcwalletio/aptos @abcwalletio/core @aptos-labs/ts-sdk @aptos-labs/wallet-standard\n```\n\n## Peer Dependencies\n\n- `@abcwalletio/core`\n- `@aptos-labs/ts-sdk` `>=1.0.0`\n- `@aptos-labs/wallet-standard` `>=1.0.0`\n- `@wallet-standard/base` / `@wallet-standard/wallet` `>=1.0.0`\n\n## Quick Start\n\n```typescript\nimport { createWaasSDK, LocalStorageAdapter } from '@abcwalletio/core';\nimport { AbcAptosAdapter } from '@abcwalletio/aptos';\n\nconst sdk = await createWaasSDK({\n  storage: new LocalStorageAdapter(),\n  auth: { v2: { clientId: '...', clientSecret: '...' } },\n});\n\n// Aptos는 ed25519 키 사용\nawait sdk.mpc.generateKeyShare('ed25519', 'password');\n\nconst adapter = new AbcAptosAdapter({\n  sdk,\n  requestPassword: async () => prompt('MPC 비밀번호?') ?? '',\n});\n\n// AIP-62 Wallet Standard로 전역 등록\n// wallet-adapter-react의 AptosWalletAdapterProvider가 자동 감지합니다.\nadapter.register();\n\n// 또는 React 사용 시 plugins prop으로 전달:\n// <AptosWalletAdapterProvider plugins={[adapter]}>\n```\n\n## API\n\n### `new AbcAptosAdapter(config)`\n\n```typescript\ninterface AbcAptosAdapterConfig {\n  sdk: WaasSDK;\n  requestPassword: () => Promise<string>;\n  keyId?: string;  // 생략 시 sdk.mpc.getDefaultKeyId('ed25519') 자동 조회\n  network?: NetworkInfo;  // 기본값: MAINNET\n}\n```\n\n### 편의 메서드 (wallet-adapter 없이 직접 사용)\n\n| 메서드 | 설명 |\n|--------|------|\n| `register()` | AIP-62 표준으로 글로벌 등록 |\n| `getAddress()` | Aptos 계정 주소 반환 |\n| `getPublicKey()` | `Ed25519PublicKey` 반환 |\n| `signRawMessage(msg)` | Uint8Array → `Ed25519Signature` |\n| `signRawTransaction(signingMsg)` | BCS 서명 메시지 → `AccountAuthenticatorEd25519` |\n\n### AIP-62 Feature 구현\n\n`features` 속성으로 다음 namespace를 제공합니다:\n\n- `AptosConnectNamespace`\n- `AptosDisconnectNamespace`\n- `AptosGetAccountNamespace`\n- `AptosGetNetworkNamespace`\n- `AptosSignMessageNamespace`\n- `AptosSignTransactionNamespace`\n- `AptosOnAccountChangeNamespace` / `AptosOnNetworkChangeNamespace` (no-op)\n\n## License\n\nMIT — Copyright (c) 2026 Ahnlab Blockchain Company\n","readmeFilename":"README.md","_rev":"1-4716ea99044ae09dc64e4e616c4c6963"}