We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
addOutputAddress
addOutputAddress method uses Address.decode which uses base58 instead base58check.
Address.decode
Checksum bytes stripped away.
In addition the same address is decoded multiple times.
scure-btc-signer/index.ts
Lines 1486 to 1499 in 98fd1c6
It seems address should be decoded the following way:
const data = base58check.decode(address); if (data.length !== 21) throw new Error('Invalid base58 address'); // Pay To Public Key Hash if (data[0] === network.pubKeyHash) { return { type: 'pkh', hash: data.slice(1) }; } else if (data[0] === network.scriptHash) { return { type: 'sh', hash: data.slice(1), }; }
The text was updated successfully, but these errors were encountered:
fix: validate address in addOutputAddress paulmillr#37
93b5e7b
Merge pull request #43 from mahnunchik/output-address
dd1f96e
fix: validate address in addOutputAddress #37
No branches or pull requests
addOutputAddress
method usesAddress.decode
which uses base58 instead base58check.Checksum bytes stripped away.
In addition the same address is decoded multiple times.
scure-btc-signer/index.ts
Lines 1486 to 1499 in 98fd1c6
It seems address should be decoded the following way:
The text was updated successfully, but these errors were encountered: