(bytecode: Uint8Array)
| 42 | |
| 43 | // Compute the SHA256 fingerprint of the normalized bytecode pattern, returned as hex. |
| 44 | export function computeBytecodeFingerprint(bytecode: Uint8Array): string { |
| 45 | return binToHex(sha256(computeBytecodePattern(bytecode))); |
| 46 | } |
| 47 | |
| 48 | // Add placeholder constructor arguments to the bytecode script and compute the fingerprint. |
| 49 | export function computeBytecodeFingerprintWithConstructorArgs(bytecodeScript: Script, constructorArgsCount: number): string { |
no test coverage detected