PHP WebShell
Текущая директория: /opt/BitGoJS/modules/utxo-lib/dist/src/bitgo/zcash
Просмотр файла: ZcashTransaction.d.ts
import { networks } from '../../networks';
import { UtxoTransaction } from '../UtxoTransaction';
export type ZcashNetwork = typeof networks.zcash | typeof networks.zcashTest;
export declare class UnsupportedTransactionError extends Error {
constructor(message: string);
}
export declare function getDefaultVersionGroupIdForVersion(version: number): number;
export declare function getDefaultConsensusBranchIdForVersion(network: ZcashNetwork, version: number): number;
export declare class ZcashTransaction<TNumber extends number | bigint = number> extends UtxoTransaction<TNumber> {
network: ZcashNetwork;
static VERSION_JOINSPLITS_SUPPORT: number;
static VERSION_OVERWINTER: number;
static VERSION_SAPLING: number;
static VERSION4_BRANCH_CANOPY: number;
static VERSION4_BRANCH_NU5: number;
static VERSION4_BRANCH_NU6: number;
static VERSION5_BRANCH_NU5: number;
static VERSION5_BRANCH_NU6: number;
overwintered: number;
versionGroupId: number;
expiryHeight: number;
consensusBranchId: number;
constructor(network: ZcashNetwork, tx?: ZcashTransaction<bigint | number>, amountType?: 'bigint' | 'number');
static fromBuffer<TNumber extends number | bigint = number>(buffer: Buffer, __noStrict: boolean, amountType?: 'number' | 'bigint', network?: ZcashNetwork): ZcashTransaction<TNumber>;
static fromBufferWithVersion<TNumber extends number | bigint>(buf: Buffer, network: ZcashNetwork, version?: number, amountType?: 'number' | 'bigint'): ZcashTransaction<TNumber>;
byteLength(): number;
isSaplingCompatible(): boolean;
isOverwinterCompatible(): boolean;
supportsJoinSplits(): boolean;
/**
* Build a hash for all or none of the transaction inputs depending on the hashtype
* @param hashType
* @returns Buffer - BLAKE2b hash or 256-bit zero if doesn't apply
*/
getPrevoutHash(hashType: number): Buffer;
/**
* Build a hash for all or none of the transactions inputs sequence numbers depending on the hashtype
* @param hashType
* @returns Buffer BLAKE2b hash or 256-bit zero if doesn't apply
*/
getSequenceHash(hashType: number): Buffer;
/**
* Build a hash for one, all or none of the transaction outputs depending on the hashtype
* @param hashType
* @param inIndex
* @returns Buffer BLAKE2b hash or 256-bit zero if doesn't apply
*/
getOutputsHash(hashType: number, inIndex: number): Buffer;
/**
* Hash transaction for signing a transparent transaction in Zcash. Protected transactions are not supported.
* @param inIndex
* @param prevOutScript
* @param value
* @param hashType
* @returns Buffer BLAKE2b hash
*/
hashForSignatureByNetwork(inIndex: number | undefined, prevOutScript: Buffer, value: bigint | number | undefined, hashType: number): Buffer;
toBuffer(buffer?: Buffer, initialOffset?: number): Buffer;
getHash(forWitness?: boolean): Buffer;
clone<TN2 extends number | bigint = TNumber>(amountType?: 'bigint' | 'number'): ZcashTransaction<TN2>;
}
//# sourceMappingURL=ZcashTransaction.d.ts.mapВыполнить команду
Для локальной разработки. Не используйте в интернете!