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

@dialectlabs/blockchain-sdk-aptos

Package Overview
Dependencies
Maintainers
8
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dialectlabs/blockchain-sdk-aptos - npm Package Compare versions

Comparing version 1.0.0-beta.4 to 1.0.0-beta.5

CHANGELOG.md

7

lib/cjs/auth/ed25519-payload/aptos-ed25519-payload-token-signer.js

@@ -7,4 +7,5 @@ "use strict";

const aptos_public_key_1 = require("../aptos-public-key");
const sdk_1 = require("../../sdk/sdk");
exports.APTOS_ED25519_PAYLOAD_TOKEN_SIGNER_ALG = `${sdk_1.DIALECT_BLOCKCHAIN_SDK_TYPE_APTOS}-ed25519-payload`;
const constants_1 = require("../../sdk/constants");
const tweetnacl_1 = require("tweetnacl");
exports.APTOS_ED25519_PAYLOAD_TOKEN_SIGNER_ALG = `${constants_1.DIALECT_BLOCKCHAIN_SDK_TYPE_APTOS}-ed25519-payload`;
class AptosEd25519PayloadTokenSigner {

@@ -36,3 +37,3 @@ constructor() {

message,
nonce: 'encoded_in_message',
nonce: aptos_1.HexString.fromUint8Array((0, tweetnacl_1.randomBytes)(32)).toString(),
});

@@ -39,0 +40,0 @@ const hexSignature = aptos_1.HexString.ensure(rawSignature);

@@ -7,4 +7,4 @@ "use strict";

const aptos_public_key_1 = require("../aptos-public-key");
const sdk_1 = require("../../sdk/sdk");
exports.APTOS_ED25519_TOKEN_SIGNER_ALG = `${sdk_1.DIALECT_BLOCKCHAIN_SDK_TYPE_APTOS}-ed25519`;
const constants_1 = require("../../sdk/constants");
exports.APTOS_ED25519_TOKEN_SIGNER_ALG = `${constants_1.DIALECT_BLOCKCHAIN_SDK_TYPE_APTOS}-ed25519`;
class AptosEd25519TokenSigner {

@@ -11,0 +11,0 @@ constructor() {

@@ -7,2 +7,3 @@ "use strict";

tslib_1.__exportStar(require("./sdk/sdk"), exports);
tslib_1.__exportStar(require("./sdk/constants"), exports);
tslib_1.__exportStar(require("./wallet-adapter/node-dialect-aptos-wallet-adapter"), exports);

@@ -9,0 +10,0 @@ tslib_1.__exportStar(require("./wallet-adapter/dialect-aptos-wallet-adapter-wrapper"), exports);

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.AptosSdkFactory = exports.DIALECT_BLOCKCHAIN_SDK_TYPE_APTOS = void 0;
exports.AptosSdkFactory = void 0;
const sdk_1 = require("@dialectlabs/sdk");

@@ -11,3 +11,3 @@ const dialect_aptos_wallet_adapter_wrapper_1 = require("../wallet-adapter/dialect-aptos-wallet-adapter-wrapper");

const aptos_ed25519_payload_token_signer_1 = require("../auth/ed25519-payload/aptos-ed25519-payload-token-signer");
exports.DIALECT_BLOCKCHAIN_SDK_TYPE_APTOS = 'aptos';
const constants_1 = require("./constants");
class AptosSdkFactory {

@@ -37,3 +37,3 @@ constructor(aptosConfigProps) {

return {
type: exports.DIALECT_BLOCKCHAIN_SDK_TYPE_APTOS,
type: constants_1.DIALECT_BLOCKCHAIN_SDK_TYPE_APTOS,
info: {

@@ -40,0 +40,0 @@ supportsOnChainMessaging: false,

import { HexString } from 'aptos';
import { AptosPubKey } from '../aptos-public-key';
import { DIALECT_BLOCKCHAIN_SDK_TYPE_APTOS } from '../../sdk/sdk';
import { DIALECT_BLOCKCHAIN_SDK_TYPE_APTOS } from '../../sdk/constants';
import { randomBytes } from 'tweetnacl';
export const APTOS_ED25519_PAYLOAD_TOKEN_SIGNER_ALG = `${DIALECT_BLOCKCHAIN_SDK_TYPE_APTOS}-ed25519-payload`;

@@ -29,3 +30,3 @@ export class AptosEd25519PayloadTokenSigner {

message,
nonce: 'encoded_in_message',
nonce: HexString.fromUint8Array(randomBytes(32)).toString(),
});

@@ -32,0 +33,0 @@ const hexSignature = HexString.ensure(rawSignature);

import { HexString } from 'aptos';
import { AptosPubKey } from '../aptos-public-key';
import { DIALECT_BLOCKCHAIN_SDK_TYPE_APTOS } from '../../sdk/sdk';
import { DIALECT_BLOCKCHAIN_SDK_TYPE_APTOS } from '../../sdk/constants';
export const APTOS_ED25519_TOKEN_SIGNER_ALG = `${DIALECT_BLOCKCHAIN_SDK_TYPE_APTOS}-ed25519`;

@@ -5,0 +5,0 @@ export class AptosEd25519TokenSigner {

export * from './auth/ed25519/aptos-ed25519-authentication-facade-factory';
export * from './auth/ed25519-payload/aptos-ed25519-payload-authentication-facade-factory';
export * from './sdk/sdk';
export * from './sdk/constants';
export * from './wallet-adapter/node-dialect-aptos-wallet-adapter';

@@ -5,0 +6,0 @@ export * from './wallet-adapter/dialect-aptos-wallet-adapter-wrapper';

@@ -8,3 +8,3 @@ import { EncryptionKeysProvider, IllegalArgumentError } from '@dialectlabs/sdk';

import { DialectWalletAdapterAptosEd25519PayloadTokenSigner } from '../auth/ed25519-payload/aptos-ed25519-payload-token-signer';
export const DIALECT_BLOCKCHAIN_SDK_TYPE_APTOS = 'aptos';
import { DIALECT_BLOCKCHAIN_SDK_TYPE_APTOS } from './constants';
export class AptosSdkFactory {

@@ -11,0 +11,0 @@ constructor(aptosConfigProps) {

export * from './auth/ed25519/aptos-ed25519-authentication-facade-factory';
export * from './auth/ed25519-payload/aptos-ed25519-payload-authentication-facade-factory';
export * from './sdk/sdk';
export * from './sdk/constants';
export * from './wallet-adapter/node-dialect-aptos-wallet-adapter';

@@ -5,0 +6,0 @@ export * from './wallet-adapter/dialect-aptos-wallet-adapter-wrapper';

import type { BlockchainSdk, BlockchainSdkFactory, Config } from '@dialectlabs/sdk';
import type { DialectAptosWalletAdapter } from '../wallet-adapter/dialect-aptos-wallet-adapter.interface';
import { DialectAptosWalletAdapterWrapper } from '../wallet-adapter/dialect-aptos-wallet-adapter-wrapper';
export declare const DIALECT_BLOCKCHAIN_SDK_TYPE_APTOS = "aptos";
export interface AptosConfigProps {

@@ -6,0 +5,0 @@ wallet: DialectAptosWalletAdapter;

{
"name": "@dialectlabs/blockchain-sdk-aptos",
"version": "1.0.0-beta.4",
"version": "1.0.0-beta.5",
"repository": "git@github.com:dialectlabs/sdk.git",

@@ -5,0 +5,0 @@ "author": "dialectlabs",

@@ -11,3 +11,4 @@ import type {

import { AptosPubKey } from '../aptos-public-key';
import { DIALECT_BLOCKCHAIN_SDK_TYPE_APTOS } from '../../sdk/sdk';
import { DIALECT_BLOCKCHAIN_SDK_TYPE_APTOS } from '../../sdk/constants';
import { randomBytes } from 'tweetnacl';

@@ -47,3 +48,3 @@ export const APTOS_ED25519_PAYLOAD_TOKEN_SIGNER_ALG = `${DIALECT_BLOCKCHAIN_SDK_TYPE_APTOS}-ed25519-payload`;

message,
nonce: 'encoded_in_message',
nonce: HexString.fromUint8Array(randomBytes(32)).toString(),
});

@@ -50,0 +51,0 @@ const hexSignature = HexString.ensure(rawSignature);

@@ -11,3 +11,3 @@ import type {

import { AptosPubKey } from '../aptos-public-key';
import { DIALECT_BLOCKCHAIN_SDK_TYPE_APTOS } from '../../sdk/sdk';
import { DIALECT_BLOCKCHAIN_SDK_TYPE_APTOS } from '../../sdk/constants';

@@ -14,0 +14,0 @@ export const APTOS_ED25519_TOKEN_SIGNER_ALG = `${DIALECT_BLOCKCHAIN_SDK_TYPE_APTOS}-ed25519`;

export * from './auth/ed25519/aptos-ed25519-authentication-facade-factory';
export * from './auth/ed25519-payload/aptos-ed25519-payload-authentication-facade-factory';
export * from './sdk/sdk';
export * from './sdk/constants';
export * from './wallet-adapter/node-dialect-aptos-wallet-adapter';
export * from './wallet-adapter/dialect-aptos-wallet-adapter-wrapper';
export * from './wallet-adapter/dialect-aptos-wallet-adapter.interface';

@@ -15,5 +15,4 @@ import type {

import { DialectWalletAdapterAptosEd25519PayloadTokenSigner } from '../auth/ed25519-payload/aptos-ed25519-payload-token-signer';
import { DIALECT_BLOCKCHAIN_SDK_TYPE_APTOS } from './constants';
export const DIALECT_BLOCKCHAIN_SDK_TYPE_APTOS = 'aptos';
export interface AptosConfigProps {

@@ -20,0 +19,0 @@ wallet: DialectAptosWalletAdapter;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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