I noticed that the validation buffer length for the pospubkey provided by others is 33 (hex is 66). The example code I was given uses a posaddress with a 42-byte address length. I need to confirm parameter validation and the correct parameter values for deposit script.
Reference:
|
if (posPubkey.length !== PK_LENGTH) { |
|
throw new Error("Invalid public key length"); |
|
} |
I noticed that the validation buffer length for the
pospubkeyprovided by others is 33 (hex is 66). The example code I was given uses aposaddresswith a 42-byte address length. I need to confirm parameter validation and the correct parameter values for deposit script.Reference:
btc-script-factory/src/covenantV1/bridge.script.ts
Lines 18 to 20 in 8c169ae