You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
373 B
16 lines
373 B
// {signature}
|
|
|
|
import { Stack } from '../../payments';
|
|
import * as bscript from '../../script';
|
|
|
|
export function check(script: Buffer | Stack): boolean {
|
|
const chunks = bscript.decompile(script) as Stack;
|
|
|
|
return (
|
|
chunks.length === 1 &&
|
|
bscript.isCanonicalScriptSignature(chunks[0] as Buffer)
|
|
);
|
|
}
|
|
check.toJSON = (): string => {
|
|
return 'pubKey input';
|
|
};
|
|
|