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

@exodus/aptos-sdk-fork

Package Overview
Dependencies
Maintainers
90
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@exodus/aptos-sdk-fork - npm Package Compare versions

Comparing version 1.19.2 to 1.19.3

pnpm-lock.yaml

2

package.json

@@ -55,3 +55,3 @@ {

},
"version": "1.19.2"
"version": "1.19.3"
}

@@ -39,2 +39,9 @@ // Copyright © Aptos Foundation

static addressFromPublicKey(publicKey: any) {
const uint8Array = HexString.ensure(publicKey).toUint8Array()
const pubKey = new Ed25519PublicKey(uint8Array);
const authKey = AuthenticationKey.fromEd25519PublicKey(pubKey);
return authKey.derivedAddress().hex();
}
/**

@@ -41,0 +48,0 @@ * Check's if the derive path is valid

@@ -17,2 +17,7 @@ // Copyright © Aptos Foundation

test("addressFromPublicKey", () => {
const address = AptosAccount.addressFromPublicKey(aptosAccountObject.publicKeyHex);
expect(address).toBe(aptosAccountObject.address);
});
test("generates random accounts", () => {

@@ -19,0 +24,0 @@ const a1 = new AptosAccount();

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