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

@xyo-network/key-model

Package Overview
Dependencies
Maintainers
0
Versions
640
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xyo-network/key-model - npm Package Compare versions

Comparing version 3.0.7 to 3.0.8

dist/browser/index.d.ts.map

39

dist/browser/index.d.ts

@@ -1,37 +0,2 @@

import { DataInstance } from '@xyo-network/data';
interface EllipticKeyInstance extends DataInstance {
}
interface AddressValueInstance extends EllipticKeyInstance {
}
interface AddressValueStatic {
new (address: ArrayBuffer): AddressValueInstance;
addressFromAddressOrPublicKey(bytes: ArrayBuffer): ArrayBuffer;
addressFromPublicKey(key: ArrayBuffer): ArrayBuffer;
isAddress(value: unknown): boolean;
}
interface PublicKeyInstance extends EllipticKeyInstance {
get address(): AddressValueInstance;
verify(msg: ArrayBuffer, signature: ArrayBuffer): boolean | Promise<boolean>;
}
interface PublicKeyStatic {
create(bytes: ArrayBuffer): Promise<PublicKeyInstance>;
isPublicKey(value: unknown): boolean;
}
interface PrivateKeyConfig {
privateKeyData?: ArrayBuffer;
}
interface PrivateKeyInstance extends EllipticKeyInstance {
public: PublicKeyInstance;
sign: (hash: ArrayBuffer) => ArrayBuffer | Promise<ArrayBuffer>;
verify: (msg: ArrayBuffer, signature: ArrayBuffer) => boolean | Promise<boolean>;
}
interface PrivateKeyStatic {
create(value: ArrayBuffer): Promise<PrivateKeyInstance>;
isPrivateKey(value: unknown): boolean;
}
export type { AddressValueInstance, AddressValueStatic, PrivateKeyConfig, PrivateKeyInstance, PrivateKeyStatic, PublicKeyInstance, PublicKeyStatic };
export * from './Key/index.ts';
//# sourceMappingURL=index.d.ts.map

@@ -1,37 +0,2 @@

import { DataInstance } from '@xyo-network/data';
interface EllipticKeyInstance extends DataInstance {
}
interface AddressValueInstance extends EllipticKeyInstance {
}
interface AddressValueStatic {
new (address: ArrayBuffer): AddressValueInstance;
addressFromAddressOrPublicKey(bytes: ArrayBuffer): ArrayBuffer;
addressFromPublicKey(key: ArrayBuffer): ArrayBuffer;
isAddress(value: unknown): boolean;
}
interface PublicKeyInstance extends EllipticKeyInstance {
get address(): AddressValueInstance;
verify(msg: ArrayBuffer, signature: ArrayBuffer): boolean | Promise<boolean>;
}
interface PublicKeyStatic {
create(bytes: ArrayBuffer): Promise<PublicKeyInstance>;
isPublicKey(value: unknown): boolean;
}
interface PrivateKeyConfig {
privateKeyData?: ArrayBuffer;
}
interface PrivateKeyInstance extends EllipticKeyInstance {
public: PublicKeyInstance;
sign: (hash: ArrayBuffer) => ArrayBuffer | Promise<ArrayBuffer>;
verify: (msg: ArrayBuffer, signature: ArrayBuffer) => boolean | Promise<boolean>;
}
interface PrivateKeyStatic {
create(value: ArrayBuffer): Promise<PrivateKeyInstance>;
isPrivateKey(value: unknown): boolean;
}
export type { AddressValueInstance, AddressValueStatic, PrivateKeyConfig, PrivateKeyInstance, PrivateKeyStatic, PublicKeyInstance, PublicKeyStatic };
export * from './Key/index.ts';
//# sourceMappingURL=index.d.ts.map

@@ -1,37 +0,2 @@

import { DataInstance } from '@xyo-network/data';
interface EllipticKeyInstance extends DataInstance {
}
interface AddressValueInstance extends EllipticKeyInstance {
}
interface AddressValueStatic {
new (address: ArrayBuffer): AddressValueInstance;
addressFromAddressOrPublicKey(bytes: ArrayBuffer): ArrayBuffer;
addressFromPublicKey(key: ArrayBuffer): ArrayBuffer;
isAddress(value: unknown): boolean;
}
interface PublicKeyInstance extends EllipticKeyInstance {
get address(): AddressValueInstance;
verify(msg: ArrayBuffer, signature: ArrayBuffer): boolean | Promise<boolean>;
}
interface PublicKeyStatic {
create(bytes: ArrayBuffer): Promise<PublicKeyInstance>;
isPublicKey(value: unknown): boolean;
}
interface PrivateKeyConfig {
privateKeyData?: ArrayBuffer;
}
interface PrivateKeyInstance extends EllipticKeyInstance {
public: PublicKeyInstance;
sign: (hash: ArrayBuffer) => ArrayBuffer | Promise<ArrayBuffer>;
verify: (msg: ArrayBuffer, signature: ArrayBuffer) => boolean | Promise<boolean>;
}
interface PrivateKeyStatic {
create(value: ArrayBuffer): Promise<PrivateKeyInstance>;
isPrivateKey(value: unknown): boolean;
}
export type { AddressValueInstance, AddressValueStatic, PrivateKeyConfig, PrivateKeyInstance, PrivateKeyStatic, PublicKeyInstance, PublicKeyStatic };
export * from './Key/index.ts';
//# sourceMappingURL=index.d.ts.map
{
"name": "@xyo-network/key-model",
"version": "3.0.7",
"version": "3.0.8",
"description": "Primary SDK for using XYO Protocol 2.0",

@@ -32,8 +32,8 @@ "homepage": "https://xyo.network",

"dependencies": {
"@xyo-network/data": "^3.0.7"
"@xyo-network/data": "^3.0.8"
},
"devDependencies": {
"@types/node": "^22.5.0",
"@xylabs/ts-scripts-yarn3": "^4.0.0",
"@xylabs/tsconfig": "^4.0.0",
"@xylabs/ts-scripts-yarn3": "^4.0.7",
"@xylabs/tsconfig": "^4.0.7",
"typescript": "^5.5.4"

@@ -40,0 +40,0 @@ },

import type { XyTsupConfig } from '@xylabs/ts-scripts-yarn3'
const config: XyTsupConfig = {
compile: {
browser: {
src: true,
},
node: {
src: true,
},
browser: { src: true },
node: { src: true },
},

@@ -11,0 +7,0 @@ }

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