{"_id":"@dogeuni-org/coin-base","_rev":"3-50ce9da3525e337ed417860c10cf3c1c","name":"@dogeuni-org/coin-base","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@dogeuni-org/coin-base","version":"1.0.0","keywords":[],"author":{"name":"dogeuni"},"license":"MIT","_id":"@dogeuni-org/coin-base@1.0.0","maintainers":[{"name":"franck-s","email":"im.franck.s@gmail.com"},{"name":"alicelite_m","email":"alicelite_m@proton.me"}],"homepage":"https://github.com/dogeuni-org/dogeuni-sdk#readme","bugs":{"url":"https://github.com/dogeuni-org/dogeuni-sdk/issues"},"dist":{"shasum":"0319b18c375b064edb6bd31dd684bdcb75b7a287","tarball":"https://registry.npmjs.org/@dogeuni-org/coin-base/-/coin-base-1.0.0.tgz","fileCount":3,"integrity":"sha512-BEMrz4uNzKPtuHB0/3pUV+0W9q2iGSosbI+GfNugOMyUO1ro0LoWYQReZQTHXRNcCBQ1K8nbUpuxBHlSPJ85mg==","signatures":[{"sig":"MEYCIQDib5YbkZ8cYh6LnwFfZGlNEou3cpyafV/sX2NLNLwbcAIhAL44ZAKKjuh2//quCllGjlXswIo1x7a2O68G80EPh2KX","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4573},"main":"./dist/index.js","types":"./dist/index.d.ts","gitHead":"3ed727a29038059b432d07998c74146408c16c64","scripts":{"test":"jest","build":"run-s clean build:main","clean":"rimraf dist tsconfig.tsbuildinfo","build:main":"tsc -p tsconfig.json"},"_npmUser":{"name":"alicelite_m","email":"alicelite_m@proton.me"},"repository":{"url":"git+https://github.com/dogeuni-org/dogeuni-sdk.git","type":"git"},"_npmVersion":"8.19.4","description":"This is a base library on which all currencies depend. You need to install this library. ```shell npm install @dogeuni-org/crypto-base ```","directories":{},"_nodeVersion":"16.20.0","dependencies":{"@dogeuni-org/crypto-lib":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^27.5.1","rimraf":"^3.0.2","ts-jest":"^27.1.4","ts-node":"^10.7.0","prettier":"2.6.2","typescript":"^4.6.2","@types/jest":"^27.5.1","@types/node":"^12.20.52","npm-run-all":"^4.1.5"},"_npmOperationalInternal":{"tmp":"tmp/coin-base_1.0.0_1742972019087_0.8741541727469442","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@dogeuni-org/coin-base","version":"1.0.1","keywords":[],"author":{"name":"dogeuni"},"license":"MIT","_id":"@dogeuni-org/coin-base@1.0.1","maintainers":[{"name":"franck-s","email":"im.franck.s@gmail.com"},{"name":"alicelite_m","email":"alicelite_m@proton.me"}],"homepage":"https://github.com/dogeuni-org/dogeuni-sdk#readme","bugs":{"url":"https://github.com/dogeuni-org/dogeuni-sdk/issues"},"dist":{"shasum":"09dbd6996ce36242f52cd16aea22bbfe81fd8ec3","tarball":"https://registry.npmjs.org/@dogeuni-org/coin-base/-/coin-base-1.0.1.tgz","fileCount":27,"integrity":"sha512-aZLMs8Ua3mQqNCVgQsY+UlPPYzHVw2nnG7CmxGyD5JFaVuZupJebAlwlEf5W88WahVTLorb+irVpOUQ+OJMWbg==","signatures":[{"sig":"MEQCIDamI/y3RJco32vfJabcZZcLoTa73wl1X9Ov5Gky07lKAiAWN/w6Z+u6sqfM082XJsGqrEesQn8Z/WKk8KcW6jXFTg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":41332},"main":"./dist/index.js","types":"./dist/index.d.ts","gitHead":"3ed727a29038059b432d07998c74146408c16c64","scripts":{"test":"jest","build":"run-s clean build:main","clean":"rimraf dist tsconfig.tsbuildinfo","build:main":"tsc -p tsconfig.json"},"_npmUser":{"name":"alicelite_m","email":"alicelite_m@proton.me"},"repository":{"url":"git+https://github.com/dogeuni-org/dogeuni-sdk.git","type":"git"},"_npmVersion":"8.19.4","description":"This is a base library on which all currencies depend. You need to install this library. ```shell npm install @dogeuni-org/crypto-base ```","directories":{},"_nodeVersion":"16.20.0","dependencies":{"@dogeuni-org/crypto-lib":"^1.0.1"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^27.5.1","rimraf":"^3.0.2","ts-jest":"^27.1.4","ts-node":"^10.7.0","prettier":"2.6.2","typescript":"^4.6.2","@types/jest":"^27.5.1","@types/node":"^12.20.52","npm-run-all":"^4.1.5"},"_npmOperationalInternal":{"tmp":"tmp/coin-base_1.0.1_1742972326311_0.7190283182440875","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2025-03-26T06:53:39.006Z","modified":"2025-03-27T05:51:06.161Z","1.0.0":"2025-03-26T06:53:39.261Z","1.0.1":"2025-03-26T06:58:46.549Z"},"bugs":{"url":"https://github.com/dogeuni-org/dogeuni-sdk/issues"},"author":{"name":"dogeuni"},"license":"MIT","homepage":"https://github.com/dogeuni-org/dogeuni-sdk#readme","keywords":[],"repository":{"url":"git+https://github.com/dogeuni-org/dogeuni-sdk.git","type":"git"},"description":"This is a base library on which all currencies depend. You need to install this library. ```shell npm install @dogeuni-org/crypto-base ```","maintainers":[{"email":"im.franck.s@gmail.com","name":"franck-s"},{"email":"alicelite_m@proton.me","name":"alicelite_m"},{"email":"ninasaul@protonmail.com","name":"ninasaul000"}],"readme":"# Installation\nThis is a base library on which all currencies depend. You need to install this library.\n```shell\nnpm install @dogeuni-org/crypto-base\n```\n\n## Provides\nWe provide common functionality for these chains or coins so that access to these chains is very simple.\n\n### Supporting chains\nIt supports Bitcoins, Ethereum, Aptos, Near, Starknet, Sui, Zkspace, Cosmos, Eos, Flow, Polkadot, Solana, Stacks and Tron.\n\n### Supporting functions\n\n**1.generate a random private key**\n\nsecp256k1 curve uses the default implementation, ed25519 curve, you need to use the basic/ed25519 implementation.\n```typescript\ngetRandomPrivateKey()\n```\n\n**2.generate private key from DerivePriKeyParams**\n ```typescript\ngetDerivedPrivateKey(param: DerivePriKeyParams)\n```\n\n**3. get new address by private key**\n ```typescript\ngetNewAddress(param: NewAddressParams)\n```\n\n**4. validate address**\n ```typescript\nvalidAddress(param: ValidAddressParams)\n```\n\n**5.sign transaction**\n```typescript\nsignTransaction(param: SignTxParams)\n```\n\n**6.get bip44 path**\n```typescript\ngetDerivedPath(param: GetDerivedPathParam)\n```\n\n**7.validate private key**\n```typescript\nvalidPrivateKey(param: ValidPrivateKeyParams)\n```\n\n**8.sign message**\n```typescript\nsignMessage(param: SignTxParams)\n```\n\n**9.verify message**\n```typescript\nverifyMessage(param: VerifyMessageParams)\n```\n\n**10.recover signature to public key**\n```typescript\necRecover(message: TypedMessage, signature: string)\n```\n\n**11.get address by public key**\n```typescript\ngetAddressByPublicKey(param: GetAddressParams)\n```\n\n**12.get raw transaction for mpc**\n```typescript\ngetMPCRawTransaction(param: MpcRawTransactionParam)\n```\n\n**13.get signed transaction for mpc**\n```typescript\ngetMPCTransaction(param: MpcTransactionParam)\n```\n\n**14.get raw message for mpc**\n```typescript\ngetMPCRawMessage(param: MpcRawTransactionParam)\n```\n\n**15.get signed message for mpc**\n```typescript\ngetMPCSignedMessage(param: MpcMessageParam)\n```\n\n**16.get raw transaction for hardware**\n```typescript\ngetHardWareRawTransaction(param: SignTxParams)\n```\n\n**17.get signed transaction for hardware**\n```typescript\ngetHardWareSignedTransaction(param: HardwareRawTransactionParam)\n```\n\n**18.get message hash for hardware**\n```typescript\ngetHardWareMessageHash(param: SignTxParams)\n```\n\n**19.get tx hash by raw transaction**\n```typescript\ncalcTxHash(param: CalcTxHashParams)\n```\n\n**20.generate raw transaction data**\n```typescript\ngetRawTransaction(param: GetRawTransactionParams)\n```\n\n**21.check signed transaction**\n```typescript\nvalidSignedTransaction(param: ValidSignedTransactionParams)\n```\n\n**22.estimate gas fee**\n```typescript\nestimateFee(param: SignTxParams)\n```\n","readmeFilename":"README.md"}