@nimiq/core-types
Advanced tools
Comparing version 0.1.6 to 0.1.7
@@ -44,5 +44,7 @@ declare namespace Nimiq { | ||
class BufferUtils { | ||
public static fromAscii(buf: string): Uint8Array; | ||
public static fromBase64(buf: string): Uint8Array; | ||
public static fromHex(buf: string): Uint8Array; | ||
public static fromAscii(buf: string): SerialBuffer; | ||
public static fromBase64(buf: string): SerialBuffer; | ||
public static fromHex(buf: string): SerialBuffer; | ||
public static toAscii(buf: Uint8Array): string | ||
public static toBase64(buf: Uint8Array): string | ||
public static toHex(buf: Uint8Array): string; | ||
@@ -212,10 +214,10 @@ public static equals(buf1: Uint8Array, buf2: Uint8Array): boolean; | ||
class MnemonicUtils { | ||
public static entropyToMnemonic(entropy: string | ArrayBuffer | Uint8Array | Entropy, wordlist?: string[]): string[]; | ||
public static entropyToLegacyMnemonic(entropy: string | ArrayBuffer | Uint8Array | Entropy, wordlist?: string[]): string[]; | ||
public static mnemonicToEntropy(mnemonic: string | string[], wordlist?: string[]): string[]; | ||
public static legacyMnemonicToEntropy(mnemonic: string | string[], wordlist?: string[]): string[]; | ||
public static mnemonicToSeed(mnemonic: string | string[], password?: string): Uint8Array; | ||
public static mnemonicToExtendedPrivateKey(mnemonic: string | string[], password?: string): ExtendedPrivateKey; | ||
public static isCollidingChecksum(entropy: Entropy): boolean; | ||
public static getMnemonicType(mnemonic: string | string[], wordlist?: string[]): number; | ||
public static entropyToMnemonic(entropy: string | ArrayBuffer | Uint8Array | Entropy, wordlist?: string[]): string[] | ||
public static entropyToLegacyMnemonic(entropy: string | ArrayBuffer | Uint8Array | Entropy, wordlist?: string[]): string[] | ||
public static mnemonicToEntropy(mnemonic: string | string[], wordlist?: string[]): Entropy | ||
public static legacyMnemonicToEntropy(mnemonic: string | string[], wordlist?: string[]): Entropy | ||
public static mnemonicToSeed(mnemonic: string | string[], password?: string): Uint8Array | ||
public static mnemonicToExtendedPrivateKey(mnemonic: string | string[], password?: string): ExtendedPrivateKey | ||
public static isCollidingChecksum(entropy: Entropy): boolean | ||
public static getMnemonicType(mnemonic: string | string[], wordlist?: string[]): number | ||
@@ -323,4 +325,2 @@ public static DEFAULT_WORDLIST: string[]; | ||
class BasicTransaction extends Transaction { | ||
public senderPubKey: PublicKey; | ||
public signature: Signature; | ||
constructor( | ||
@@ -332,3 +332,7 @@ publicKey: PublicKey, | ||
validityStartHeight: number, | ||
signature?: Signature, | ||
networkId?: number | ||
) | ||
senderPubKey: PublicKey | ||
signature: Signature | ||
} | ||
@@ -345,4 +349,6 @@ | ||
validityStartHeight: number, | ||
flags: Transaction.Flag, | ||
flags: Transaction.Flag | number, | ||
data: Uint8Array, | ||
proof?: Uint8Array, | ||
networkId?: number | ||
) | ||
@@ -433,2 +439,5 @@ } | ||
public static SEED_PEERS: PeerAddress[]; | ||
public static CONFIGS: { | ||
[key: string]: { NETWORK_ID: number } | ||
} | ||
public static main(): void; | ||
@@ -435,0 +444,0 @@ public static test(): void; |
{ | ||
"name": "@nimiq/core-types", | ||
"version": "0.1.6", | ||
"version": "0.1.7", | ||
"description": "Typescript typings for the Nimiq core library", | ||
@@ -5,0 +5,0 @@ "main": "Nimiq.d.ts", |
29497
434