@xyo-network/key-model
Advanced tools
Comparing version 3.0.7 to 3.0.8
@@ -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 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23461
53
170
1
Updated@xyo-network/data@^3.0.8