Function cloneAuthenticationProgramStateBCH
- cloneAuthenticationProgramStateBCH<State>(state): {
alternateStack: Uint8Array[];
controlStack: boolean[];
error?: string;
instructions: AuthenticationInstruction[];
ip: number;
lastCodeSeparator: number;
operationCount: number;
program: {
inputIndex: number;
sourceOutputs: {
lockingBytecode: Uint8Array;
token?: {
amount: bigint;
category: Uint8Array;
nft?: {
capability: "none" | "mutable" | "minting";
commitment: Uint8Array;
};
};
valueSatoshis: bigint;
}[];
transaction: {
inputs: {
outpointIndex: number;
outpointTransactionHash: Uint8Array;
sequenceNumber: number;
unlockingBytecode: Uint8Array;
}[];
locktime: number;
outputs: {
lockingBytecode: Uint8Array;
token?: {
amount: bigint;
category: Uint8Array;
nft?: {
capability: "none" | "mutable" | "minting";
commitment: Uint8Array;
};
};
valueSatoshis: bigint;
}[];
version: number;
};
};
signatureOperationsCount: number;
signedMessages: ({
digest: Uint8Array;
serialization: Uint8Array;
} | {
digest: Uint8Array;
message: Uint8Array;
})[];
stack: Uint8Array[];
} Returns {
alternateStack: Uint8Array[];
controlStack: boolean[];
error?: string;
instructions: AuthenticationInstruction[];
ip: number;
lastCodeSeparator: number;
operationCount: number;
program: {
inputIndex: number;
sourceOutputs: {
lockingBytecode: Uint8Array;
token?: {
amount: bigint;
category: Uint8Array;
nft?: {
capability: "none" | "mutable" | "minting";
commitment: Uint8Array;
};
};
valueSatoshis: bigint;
}[];
transaction: {
inputs: {
outpointIndex: number;
outpointTransactionHash: Uint8Array;
sequenceNumber: number;
unlockingBytecode: Uint8Array;
}[];
locktime: number;
outputs: {
lockingBytecode: Uint8Array;
token?: {
amount: bigint;
category: Uint8Array;
nft?: {
capability: "none" | "mutable" | "minting";
commitment: Uint8Array;
};
};
valueSatoshis: bigint;
}[];
version: number;
};
};
signatureOperationsCount: number;
signedMessages: ({
digest: Uint8Array;
serialization: Uint8Array;
} | {
digest: Uint8Array;
message: Uint8Array;
})[];
stack: Uint8Array[];
}
alternateStack: Uint8Array[]
controlStack: boolean[]
Optional
error?: string
ip: number
lastCodeSeparator: number
operationCount: number
program: {
inputIndex: number;
sourceOutputs: {
lockingBytecode: Uint8Array;
token?: {
amount: bigint;
category: Uint8Array;
nft?: {
capability: "none" | "mutable" | "minting";
commitment: Uint8Array;
};
};
valueSatoshis: bigint;
}[];
transaction: {
inputs: {
outpointIndex: number;
outpointTransactionHash: Uint8Array;
sequenceNumber: number;
unlockingBytecode: Uint8Array;
}[];
locktime: number;
outputs: {
lockingBytecode: Uint8Array;
token?: {
amount: bigint;
category: Uint8Array;
nft?: {
capability: "none" | "mutable" | "minting";
commitment: Uint8Array;
};
};
valueSatoshis: bigint;
}[];
version: number;
};
}
inputIndex: number
sourceOutputs: {
lockingBytecode: Uint8Array;
token?: {
amount: bigint;
category: Uint8Array;
nft?: {
capability: "none" | "mutable" | "minting";
commitment: Uint8Array;
};
};
valueSatoshis: bigint;
}[]
transaction: {
inputs: {
outpointIndex: number;
outpointTransactionHash: Uint8Array;
sequenceNumber: number;
unlockingBytecode: Uint8Array;
}[];
locktime: number;
outputs: {
lockingBytecode: Uint8Array;
token?: {
amount: bigint;
category: Uint8Array;
nft?: {
capability: "none" | "mutable" | "minting";
commitment: Uint8Array;
};
};
valueSatoshis: bigint;
}[];
version: number;
}
inputs: {
outpointIndex: number;
outpointTransactionHash: Uint8Array;
sequenceNumber: number;
unlockingBytecode: Uint8Array;
}[]
locktime: number
outputs: {
lockingBytecode: Uint8Array;
token?: {
amount: bigint;
category: Uint8Array;
nft?: {
capability: "none" | "mutable" | "minting";
commitment: Uint8Array;
};
};
valueSatoshis: bigint;
}[]
version: number
signatureOperationsCount: number
signedMessages: ({
digest: Uint8Array;
serialization: Uint8Array;
} | {
digest: Uint8Array;
message: Uint8Array;
})[]
stack: Uint8Array[]
Deprecated
use
structuredClone
instead