Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@pontem/hw-app-aptos

Package Overview
Dependencies
Maintainers
5
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pontem/hw-app-aptos

Ledger Hardware Wallet Aptos Application API

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
5
Weekly downloads
 
Created
Source

Aptos Hardware Wallet Example

Table of Contents
  • Aptos
Parameters
  • transport Transport a transport for sending commands to a device
  • scrambleKey string a scramble key (optional, default "aptos")
Examples
import Aptos from "hw-app-aptos";
const aptos = new Aptos(transport);
getVersion

Get application version.

Examples
aptos.getVersion().then(r => r.version)

Returns Promise<AppConfig> an object with the version field

getAddress

Get Aptos address (public key) for a BIP32 path.

Because Aptos uses Ed25519 keypairs, as per SLIP-0010 all derivation-path indexes will be promoted to hardened indexes.

Parameters
  • path string a BIP32 path
  • display boolean flag to show display (optional, default false)
Examples
aptos.getAddress("m/44'/637'/1'/0'/0'").then(r => r.address)

Returns Promise<AddressData> an object with publicKey, chainCode, address fields

signTransaction

Sign an Aptos transaction.

Parameters
  • path string a BIP32 path
  • txBuffer Buffer serialized transaction
Examples
aptos.signTransaction("m/44'/637'/1'/0'/0'", txBuffer).then(r => r.signature)

Returns Promise<{signature: Buffer}> an object with the signature field

FAQs

Package last updated on 12 Apr 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc