opnet 1.0.3 → 1.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.babelrc +7 -0
- package/.idea/{OPNet.iml → opnet.iml} +2 -0
- package/README.md +15 -10
- package/browser/_version.d.ts +1 -0
- package/browser/bitcoin/BitcoinAddress.d.ts +20 -0
- package/browser/bitcoin/UTXOs.d.ts +15 -0
- package/browser/block/Block.d.ts +26 -0
- package/browser/block/interfaces/IBlock.d.ts +28 -0
- package/browser/common/CommonTypes.d.ts +3 -0
- package/browser/contracts/CallResult.d.ts +10 -0
- package/browser/contracts/ContractData.d.ts +15 -0
- package/browser/contracts/interfaces/IAccessList.d.ts +6 -0
- package/browser/contracts/interfaces/ICallResult.d.ts +12 -0
- package/browser/contracts/interfaces/IRawContract.d.ts +13 -0
- package/browser/crypto/crypto-browser.d.ts +33 -0
- package/browser/crypto/crypto.d.ts +2 -0
- package/browser/index.d.ts +3 -0
- package/browser/index.js +2 -0
- package/browser/index.js.LICENSE.txt +18 -0
- package/browser/interfaces/opnet/OPNetTransactionTypes.d.ts +5 -0
- package/browser/opnet.d.ts +24 -0
- package/browser/providers/AbstractRpcProvider.d.ts +34 -0
- package/browser/providers/JSONRpcProvider.d.ts +8 -0
- package/browser/providers/WebsocketRpcProvider.d.ts +8 -0
- package/browser/scripts/test.d.ts +1 -0
- package/browser/serialize/BigInt.d.ts +6 -0
- package/browser/storage/StoredValue.d.ts +10 -0
- package/browser/storage/interfaces/IStorageValue.d.ts +9 -0
- package/browser/transactions/DeploymentTransaction.d.ts +15 -0
- package/browser/transactions/GenericTransaction.d.ts +6 -0
- package/browser/transactions/InteractionTransaction.d.ts +17 -0
- package/browser/transactions/Transaction.d.ts +17 -0
- package/browser/transactions/TransactionInput.d.ts +16 -0
- package/browser/transactions/TransactionOutput.d.ts +19 -0
- package/browser/transactions/TransactionParser.d.ts +7 -0
- package/browser/transactions/TransactionReceipt.d.ts +10 -0
- package/browser/transactions/interfaces/ITransaction.d.ts +39 -0
- package/browser/transactions/interfaces/ITransactionReceipt.d.ts +8 -0
- package/build/_version.d.ts +1 -0
- package/build/_version.js +1 -0
- package/build/bitcoin/BitcoinAddress.d.ts +20 -0
- package/build/bitcoin/BitcoinAddress.js +89 -0
- package/build/bitcoin/UTXOs.d.ts +15 -0
- package/build/bitcoin/UTXOs.js +12 -0
- package/build/bitcoin/UXTOs.d.ts +7 -0
- package/build/bitcoin/UXTOs.js +1 -0
- package/build/block/Block.d.ts +2 -3
- package/build/block/Block.js +3 -28
- package/build/block/index.d.ts +2 -0
- package/build/block/index.js +1 -0
- package/build/block/interfaces/IBlock.d.ts +28 -0
- package/build/block/interfaces/IBlock.js +1 -0
- package/build/common/CommonTypes.d.ts +3 -0
- package/build/common/CommonTypes.js +1 -0
- package/build/contracts/CallResult.d.ts +10 -0
- package/build/contracts/CallResult.js +14 -0
- package/build/contracts/ContractData.d.ts +15 -0
- package/build/contracts/ContractData.js +32 -0
- package/build/contracts/IRawContract.d.ts +13 -0
- package/build/contracts/IRawContract.js +1 -0
- package/build/contracts/interfaces/IAccessList.d.ts +6 -0
- package/build/contracts/interfaces/IAccessList.js +1 -0
- package/build/contracts/interfaces/ICallResult.d.ts +12 -0
- package/build/contracts/interfaces/ICallResult.js +1 -0
- package/build/contracts/interfaces/IRawContract.d.ts +13 -0
- package/build/contracts/interfaces/IRawContract.js +1 -0
- package/build/crypto/crypto-browser.d.ts +0 -0
- package/build/crypto/crypto-browser.js +47 -0
- package/build/crypto/crypto.d.ts +2 -0
- package/build/crypto/crypto.js +1 -0
- package/build/index.d.ts +3 -11
- package/build/index.js +3 -11
- package/build/interfaces/transactions/ITransaction.d.ts +8 -0
- package/build/opnet.d.ts +24 -0
- package/build/opnet.js +24 -0
- package/build/providers/AbstractRpcProvider.d.ts +34 -0
- package/build/providers/AbstractRpcProvider.js +157 -0
- package/build/providers/JSONRpcProvider.d.ts +5 -9
- package/build/providers/JSONRpcProvider.js +4 -29
- package/build/providers/WebsocketRpcProvider.d.ts +8 -0
- package/build/providers/WebsocketRpcProvider.js +23 -0
- package/build/providers/index.d.ts +4 -0
- package/build/providers/index.js +4 -0
- package/build/scripts/test.js +9 -5
- package/build/serialize/BigInt.d.ts +6 -0
- package/build/serialize/BigInt.js +4 -0
- package/build/storage/StoredValue.d.ts +10 -0
- package/build/storage/StoredValue.js +24 -0
- package/build/storage/interfaces/IStorage.d.ts +7 -0
- package/build/storage/interfaces/IStorage.js +1 -0
- package/build/storage/interfaces/IStorageValue.d.ts +9 -0
- package/build/storage/interfaces/IStorageValue.js +1 -0
- package/build/transactions/DeploymentTransaction.d.ts +10 -1
- package/build/transactions/DeploymentTransaction.js +16 -0
- package/build/transactions/GenericTransaction.d.ts +1 -1
- package/build/transactions/InteractionTransaction.d.ts +2 -1
- package/build/transactions/InteractionTransaction.js +1 -0
- package/build/transactions/Transaction.d.ts +1 -1
- package/build/transactions/Transaction.js +1 -1
- package/build/transactions/TransactionParser.d.ts +7 -0
- package/build/transactions/TransactionParser.js +28 -0
- package/build/transactions/TransactionReceipt.d.ts +10 -0
- package/build/transactions/TransactionReceipt.js +12 -0
- package/build/transactions/index.d.ts +6 -0
- package/build/transactions/index.js +6 -0
- package/build/transactions/interfaces/ITransaction.d.ts +39 -0
- package/build/transactions/interfaces/ITransaction.js +1 -0
- package/build/transactions/interfaces/ITransactionReceipt.d.ts +8 -0
- package/build/transactions/interfaces/ITransactionReceipt.js +1 -0
- package/cjs/block/Block.d.ts +27 -0
- package/cjs/block/Block.js +72 -0
- package/cjs/index.d.ts +11 -0
- package/cjs/index.js +26 -0
- package/{src/interfaces/blocks/IBlock.ts → cjs/interfaces/blocks/IBlock.d.ts} +0 -10
- package/cjs/interfaces/blocks/IBlock.js +2 -0
- package/cjs/interfaces/opnet/OPNetTransactionTypes.d.ts +5 -0
- package/cjs/interfaces/opnet/OPNetTransactionTypes.js +9 -0
- package/{src/interfaces/transactions/ITransaction.ts → cjs/interfaces/transactions/ITransaction.d.ts} +7 -17
- package/cjs/interfaces/transactions/ITransaction.js +2 -0
- package/cjs/providers/JSONRpcProvider.d.ts +12 -0
- package/cjs/providers/JSONRpcProvider.js +52 -0
- package/cjs/scripts/test.d.ts +1 -0
- package/cjs/scripts/test.js +10 -0
- package/cjs/transactions/DeploymentTransaction.d.ts +6 -0
- package/cjs/transactions/DeploymentTransaction.js +10 -0
- package/cjs/transactions/GenericTransaction.d.ts +6 -0
- package/cjs/transactions/GenericTransaction.js +10 -0
- package/cjs/transactions/InteractionTransaction.d.ts +17 -0
- package/cjs/transactions/InteractionTransaction.js +29 -0
- package/cjs/transactions/Transaction.d.ts +17 -0
- package/cjs/transactions/Transaction.js +28 -0
- package/cjs/transactions/TransactionInput.d.ts +16 -0
- package/cjs/transactions/TransactionInput.js +18 -0
- package/cjs/transactions/TransactionOutput.d.ts +19 -0
- package/cjs/transactions/TransactionOutput.js +20 -0
- package/docs/.nojekyll +1 -0
- package/docs/assets/highlight.css +57 -0
- package/docs/assets/icons.js +15 -0
- package/docs/assets/icons.svg +1 -0
- package/docs/assets/main.js +59 -0
- package/docs/assets/material-style.css +247 -0
- package/docs/assets/navigation.js +1 -0
- package/docs/assets/search.js +1 -0
- package/docs/assets/style.css +1412 -0
- package/docs/classes/AbstractRpcProvider.html +197 -0
- package/docs/classes/Block.html +196 -0
- package/docs/classes/DeploymentTransaction.html +191 -0
- package/docs/classes/GenericTransaction.html +183 -0
- package/docs/classes/InteractionTransaction.html +191 -0
- package/docs/classes/JSONRpcProvider.html +196 -0
- package/docs/classes/TransactionBase.html +183 -0
- package/docs/classes/TransactionInput.html +180 -0
- package/docs/classes/TransactionOutput.html +180 -0
- package/docs/classes/WebSocketRpcProvider.html +196 -0
- package/docs/enums/OPNetTransactionTypes.html +177 -0
- package/docs/hierarchy.html +174 -0
- package/docs/index.html +213 -0
- package/docs/interfaces/IBlock.html +194 -0
- package/docs/interfaces/IBlockCommon.html +193 -0
- package/docs/interfaces/IDeploymentTransaction.html +190 -0
- package/docs/interfaces/IGenericTransaction.html +182 -0
- package/docs/interfaces/IInteractionTransaction.html +190 -0
- package/docs/interfaces/ITransactionBase.html +182 -0
- package/docs/interfaces/ITransactionInput.html +179 -0
- package/docs/interfaces/ITransactionOutput.html +177 -0
- package/docs/modules.html +196 -0
- package/docs/types/BlockHeaderChecksumProof.html +174 -0
- package/docs/types/ITransaction.html +174 -0
- package/docs/variables/version.html +174 -0
- package/gulpfile.js +152 -152
- package/package.json +107 -71
- package/src/_version.ts +1 -0
- package/src/bitcoin/BitcoinAddress.ts +128 -0
- package/src/bitcoin/UTXOs.ts +26 -0
- package/src/block/Block.ts +7 -45
- package/src/block/interfaces/IBlock.ts +38 -0
- package/src/common/CommonTypes.ts +4 -0
- package/src/contracts/CallResult.ts +20 -0
- package/src/contracts/ContractData.ts +41 -0
- package/src/contracts/interfaces/IAccessList.ts +7 -0
- package/src/contracts/interfaces/ICallResult.ts +15 -0
- package/src/contracts/interfaces/IRawContract.ts +12 -0
- package/src/crypto/crypto-browser.js +60 -0
- package/src/crypto/crypto.ts +1 -0
- package/src/index.ts +3 -11
- package/src/opnet.ts +44 -0
- package/src/providers/AbstractRpcProvider.ts +351 -0
- package/src/providers/JSONRpcProvider.ts +34 -67
- package/src/providers/WebsocketRpcProvider.ts +34 -0
- package/src/scripts/test.ts +54 -11
- package/src/serialize/BigInt.ts +15 -0
- package/src/storage/StoredValue.ts +30 -0
- package/src/storage/interfaces/IStorageValue.ts +10 -0
- package/src/transactions/DeploymentTransaction.ts +36 -12
- package/src/transactions/GenericTransaction.ts +12 -12
- package/src/transactions/InteractionTransaction.ts +40 -39
- package/src/transactions/Transaction.ts +2 -2
- package/src/transactions/TransactionParser.ts +43 -0
- package/src/transactions/TransactionReceipt.ts +18 -0
- package/src/transactions/interfaces/ITransaction.ts +52 -0
- package/src/transactions/interfaces/ITransactionReceipt.ts +9 -0
- package/tsconfig.base.json +10 -2
- package/tsconfig.webpack.json +11 -0
- package/webpack.config.js +75 -0
package/.babelrc
ADDED
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
<excludeFolder url="file://$MODULE_DIR$/build" />
|
|
9
9
|
<excludeFolder url="file://$MODULE_DIR$/packages" />
|
|
10
10
|
<excludeFolder url="file://$MODULE_DIR$/cjs" />
|
|
11
|
+
<excludeFolder url="file://$MODULE_DIR$/browser" />
|
|
12
|
+
<excludeFolder url="file://$MODULE_DIR$/docs" />
|
|
11
13
|
</content>
|
|
12
14
|
<orderEntry type="inheritedJdk" />
|
|
13
15
|
<orderEntry type="sourceFolder" forTests="false" />
|
package/README.md
CHANGED
|
@@ -11,10 +11,12 @@
|
|
|
11
11
|
|
|
12
12
|
## Introduction
|
|
13
13
|
|
|
14
|
-
A complete, compact and simple library for the Bitcoin ecosystem, written in
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
A complete, compact and simple library for the Bitcoin ecosystem, written in
|
|
15
|
+
TypeScript. This library is designed to be easy to use and understand, while
|
|
16
|
+
providing a comprehensive set of functions for creating, reading and
|
|
17
|
+
manipulating Bitcoin transactions. This library is designed to be able to
|
|
18
|
+
manipulate anything related to BSI (Bitcoin Smart Inscription), smart contracts,
|
|
19
|
+
and other Bitcoin-related technologies.
|
|
18
20
|
|
|
19
21
|
## Getting Started
|
|
20
22
|
|
|
@@ -37,7 +39,7 @@ npm i opnet
|
|
|
37
39
|
```
|
|
38
40
|
2. Navigate to the repository directory:
|
|
39
41
|
```bash
|
|
40
|
-
cd
|
|
42
|
+
cd opnet
|
|
41
43
|
```
|
|
42
44
|
3. Install the required dependencies:
|
|
43
45
|
```bash
|
|
@@ -47,14 +49,17 @@ npm i opnet
|
|
|
47
49
|
## Usage
|
|
48
50
|
|
|
49
51
|
Refer to the `docs/` directory for detailed guides on how to use OPNet. Start
|
|
50
|
-
with `getting_started.md` and explore `api_reference.md` for comprehensive
|
|
52
|
+
with `getting_started.md` and explore `api_reference.md` for comprehensive
|
|
53
|
+
information about the functions available.
|
|
51
54
|
|
|
52
55
|
## Contribution
|
|
53
56
|
|
|
54
|
-
Contributions are welcome! Please read through the `CONTRIBUTING.md` file for
|
|
55
|
-
feature requests, and pull requests. We
|
|
57
|
+
Contributions are welcome! Please read through the `CONTRIBUTING.md` file for
|
|
58
|
+
guidelines on how to submit issues, feature requests, and pull requests. We
|
|
59
|
+
appreciate your input and encourage you to help us improve OPNet.
|
|
56
60
|
|
|
57
61
|
## License
|
|
58
62
|
|
|
59
|
-
This project is open source and available under the [MIT License](LICENSE). If
|
|
60
|
-
contributions, please feel free to submit a pull
|
|
63
|
+
This project is open source and available under the [MIT License](LICENSE). If
|
|
64
|
+
you have any suggestions or contributions, please feel free to submit a pull
|
|
65
|
+
request.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const version = "1.0.12";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { Network } from 'bitcoinjs-lib';
|
|
3
|
+
import { ECPairInterface } from 'ecpair';
|
|
4
|
+
import { BitcoinAddressLike } from '../common/CommonTypes.js';
|
|
5
|
+
export declare class BitcoinAddress {
|
|
6
|
+
#private;
|
|
7
|
+
private readonly network;
|
|
8
|
+
constructor(keypair: ECPairInterface, network?: Network);
|
|
9
|
+
get taprootAddress(): string;
|
|
10
|
+
get p2wpkhAddress(): string;
|
|
11
|
+
get publicKey(): Buffer;
|
|
12
|
+
get privateKey(): Buffer | undefined;
|
|
13
|
+
static isValidTaprootAddress(_addr: BitcoinAddressLike, network?: Network): boolean;
|
|
14
|
+
static fromPublicKey(publicKey: Buffer, network?: Network): BitcoinAddress;
|
|
15
|
+
static fromPrivateKey(privateKey: Buffer, network?: Network): BitcoinAddress;
|
|
16
|
+
static fromWif(wif: string, network?: Network): BitcoinAddress;
|
|
17
|
+
[Symbol.toStringTag](): string;
|
|
18
|
+
private getP2WPKHAddress;
|
|
19
|
+
private getTaprootAddress;
|
|
20
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ScriptPubKey } from '@btc-vision/bsi-bitcoin-rpc';
|
|
2
|
+
export interface IUTXO {
|
|
3
|
+
readonly transactionId: string;
|
|
4
|
+
readonly outputIndex: number;
|
|
5
|
+
readonly value: bigint | string;
|
|
6
|
+
readonly scriptPubKey: ScriptPubKey;
|
|
7
|
+
}
|
|
8
|
+
export declare class UTXO implements IUTXO {
|
|
9
|
+
readonly transactionId: string;
|
|
10
|
+
readonly outputIndex: number;
|
|
11
|
+
readonly value: bigint;
|
|
12
|
+
readonly scriptPubKey: ScriptPubKey;
|
|
13
|
+
constructor(iUTXO: IUTXO);
|
|
14
|
+
}
|
|
15
|
+
export type UTXOs = UTXO[];
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { BigNumberish } from 'ethers';
|
|
2
|
+
import { OPNetTransactionTypes } from '../interfaces/opnet/OPNetTransactionTypes.js';
|
|
3
|
+
import { TransactionBase } from '../transactions/Transaction.js';
|
|
4
|
+
import { BlockHeaderChecksumProof, IBlock } from './interfaces/IBlock.js';
|
|
5
|
+
export declare class Block implements IBlock {
|
|
6
|
+
readonly height: BigNumberish;
|
|
7
|
+
readonly hash: string;
|
|
8
|
+
readonly previousBlockHash: string;
|
|
9
|
+
readonly previousBlockChecksum: string;
|
|
10
|
+
readonly bits: string;
|
|
11
|
+
readonly nonce: number;
|
|
12
|
+
readonly version: number;
|
|
13
|
+
readonly size: number;
|
|
14
|
+
readonly txCount: number;
|
|
15
|
+
readonly weight: number;
|
|
16
|
+
readonly strippedSize: number;
|
|
17
|
+
readonly time: number;
|
|
18
|
+
readonly medianTime: number;
|
|
19
|
+
readonly checksumRoot: string;
|
|
20
|
+
readonly merkleRoot: string;
|
|
21
|
+
readonly storageRoot: string;
|
|
22
|
+
readonly receiptRoot: string;
|
|
23
|
+
readonly checksumProofs: BlockHeaderChecksumProof;
|
|
24
|
+
readonly transactions: TransactionBase<OPNetTransactionTypes>[];
|
|
25
|
+
constructor(block: IBlock);
|
|
26
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { BigNumberish } from 'ethers';
|
|
2
|
+
import { OPNetTransactionTypes } from '../../interfaces/opnet/OPNetTransactionTypes.js';
|
|
3
|
+
import { ITransaction } from '../../transactions/interfaces/ITransaction.js';
|
|
4
|
+
import { TransactionBase } from '../../transactions/Transaction.js';
|
|
5
|
+
export type BlockHeaderChecksumProof = Array<[number, string[]]>;
|
|
6
|
+
export interface IBlockCommon {
|
|
7
|
+
height: string | BigNumberish;
|
|
8
|
+
hash: string;
|
|
9
|
+
previousBlockHash: string;
|
|
10
|
+
previousBlockChecksum: string;
|
|
11
|
+
bits: string;
|
|
12
|
+
nonce: number;
|
|
13
|
+
version: number;
|
|
14
|
+
size: number;
|
|
15
|
+
txCount: number;
|
|
16
|
+
weight: number;
|
|
17
|
+
strippedSize: number;
|
|
18
|
+
time: number;
|
|
19
|
+
medianTime: number;
|
|
20
|
+
checksumRoot: string;
|
|
21
|
+
merkleRoot: string;
|
|
22
|
+
storageRoot: string;
|
|
23
|
+
receiptRoot: string;
|
|
24
|
+
checksumProofs: BlockHeaderChecksumProof;
|
|
25
|
+
}
|
|
26
|
+
export interface IBlock extends IBlockCommon {
|
|
27
|
+
transactions?: ITransaction[] | TransactionBase<OPNetTransactionTypes>[];
|
|
28
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { NetEvent } from '@btc-vision/bsi-binary';
|
|
2
|
+
import { BufferReader } from 'bitcoinjs-lib/src/bufferutils.js';
|
|
3
|
+
import { IAccessList } from './interfaces/IAccessList.js';
|
|
4
|
+
import { ICallResultData } from './interfaces/ICallResult.js';
|
|
5
|
+
export declare class CallResult implements ICallResultData {
|
|
6
|
+
readonly result: BufferReader;
|
|
7
|
+
readonly events: NetEvent[];
|
|
8
|
+
readonly accessList: IAccessList;
|
|
9
|
+
constructor(iCallResult: ICallResultData);
|
|
10
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { IRawContract } from './interfaces/IRawContract.js';
|
|
3
|
+
export declare class ContractData implements IRawContract {
|
|
4
|
+
readonly contractAddress: string;
|
|
5
|
+
readonly virtualAddress: string;
|
|
6
|
+
readonly bytecode: Buffer;
|
|
7
|
+
readonly wasCompressed: boolean;
|
|
8
|
+
readonly deployedTransactionId: string;
|
|
9
|
+
readonly deployedTransactionHash: string;
|
|
10
|
+
readonly deployerPubKey: Buffer;
|
|
11
|
+
readonly contractSeed: Buffer;
|
|
12
|
+
readonly contractSaltHash: Buffer;
|
|
13
|
+
readonly deployerAddress: string;
|
|
14
|
+
constructor(raw: IRawContract);
|
|
15
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { NetEvent } from '@btc-vision/bsi-binary';
|
|
2
|
+
import { BufferReader } from 'bitcoinjs-lib/src/bufferutils.js';
|
|
3
|
+
import { IAccessList } from './IAccessList.js';
|
|
4
|
+
export interface ICallRequestError {
|
|
5
|
+
readonly error: string;
|
|
6
|
+
}
|
|
7
|
+
export interface ICallResultData {
|
|
8
|
+
readonly result: string | BufferReader;
|
|
9
|
+
readonly events: NetEvent[];
|
|
10
|
+
readonly accessList: IAccessList;
|
|
11
|
+
}
|
|
12
|
+
export type ICallResult = ICallRequestError | ICallResultData;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
export interface IRawContract {
|
|
3
|
+
readonly contractAddress: string;
|
|
4
|
+
readonly virtualAddress: string;
|
|
5
|
+
readonly bytecode: Buffer | string;
|
|
6
|
+
readonly wasCompressed: boolean;
|
|
7
|
+
readonly deployedTransactionId: string;
|
|
8
|
+
readonly deployedTransactionHash: string;
|
|
9
|
+
readonly deployerPubKey: Buffer | string;
|
|
10
|
+
readonly contractSeed: Buffer | string;
|
|
11
|
+
readonly contractSaltHash: Buffer | string;
|
|
12
|
+
readonly deployerAddress: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export function createHash(algo: any): import("@noble/hashes/utils").Hash<{
|
|
2
|
+
A: number;
|
|
3
|
+
B: number;
|
|
4
|
+
C: number;
|
|
5
|
+
D: number;
|
|
6
|
+
E: number;
|
|
7
|
+
F: number;
|
|
8
|
+
G: number;
|
|
9
|
+
H: number;
|
|
10
|
+
get(): [number, number, number, number, number, number, number, number];
|
|
11
|
+
set(A: number, B: number, C: number, D: number, E: number, F: number, G: number, H: number): void;
|
|
12
|
+
process(view: DataView, offset: number): void;
|
|
13
|
+
roundClean(): void;
|
|
14
|
+
destroy(): void;
|
|
15
|
+
readonly blockLen: number;
|
|
16
|
+
outputLen: number;
|
|
17
|
+
readonly padOffset: number;
|
|
18
|
+
readonly isLE: boolean;
|
|
19
|
+
buffer: Uint8Array;
|
|
20
|
+
view: DataView;
|
|
21
|
+
finished: boolean;
|
|
22
|
+
length: number;
|
|
23
|
+
pos: number;
|
|
24
|
+
destroyed: boolean;
|
|
25
|
+
update(data: import("@noble/hashes/utils").Input): any;
|
|
26
|
+
digestInto(out: Uint8Array): void;
|
|
27
|
+
digest(): Uint8Array;
|
|
28
|
+
_cloneInto(to?: any | undefined): any;
|
|
29
|
+
clone(): any;
|
|
30
|
+
}> | import("@noble/hashes/utils").Hash<import("@noble/hashes/sha512").SHA512>;
|
|
31
|
+
export function createHmac(_algo: any, key: any): import("@noble/hashes/hmac").HMAC<any>;
|
|
32
|
+
export function pbkdf2Sync(password: any, salt: any, iterations: any, keylen: any, _algo: any): Uint8Array;
|
|
33
|
+
export function randomBytes(length: any): Uint8Array;
|