Function cloneAuthenticationProgramStateBCHCHIPs
- cloneAuthenticationProgramStateBCHCHIPs<State>(state): {
alternateStack: Uint8Array[];
controlStack: (number | boolean)[];
error?: string;
hashDigestIterations: number;
instructions: AuthenticationInstruction[];
ip: number;
lastCodeSeparator: 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;
};
};
repeatedBytes: number;
signedMessages: ({
digest: Uint8Array;
serialization: Uint8Array;
} | {
digest: Uint8Array;
message: Uint8Array;
})[];
stack: Uint8Array[];
} Returns {
alternateStack: Uint8Array[];
controlStack: (number | boolean)[];
error?: string;
hashDigestIterations: number;
instructions: AuthenticationInstruction[];
ip: number;
lastCodeSeparator: 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;
};
};
repeatedBytes: number;
signedMessages: ({
digest: Uint8Array;
serialization: Uint8Array;
} | {
digest: Uint8Array;
message: Uint8Array;
})[];
stack: Uint8Array[];
}
alternateStack: Uint8Array[]
controlStack: (number | boolean)[]
Optional
error?: string
hashDigestIterations: number
ip: number
lastCodeSeparator: 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
repeatedBytes: number
signedMessages: ({
digest: Uint8Array;
serialization: Uint8Array;
} | {
digest: Uint8Array;
message: Uint8Array;
})[]
stack: Uint8Array[]
Deprecated
use
structuredClone
instead