allow specifying non pubkey characters after the pubkey

This commit is contained in:
Alex Bosworth 2023-03-07 19:58:37 -08:00
parent ac9f6892ba
commit 417817a434
No known key found for this signature in database
GPG key ID: E80D2F3F311FD87E
4 changed files with 6 additions and 5 deletions

View file

@ -1,6 +1,6 @@
# Versions
## 13.31.1
## 13.31.2
- `call`: Add support for `signChainAddressMessage` for a chain addr signature
- `call`: Add support for `verifyChainAddressMessage` to verify a address sig

4
package-lock.json generated
View file

@ -1,12 +1,12 @@
{
"name": "balanceofsatoshis",
"version": "13.31.1",
"version": "13.31.2",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "balanceofsatoshis",
"version": "13.31.1",
"version": "13.31.2",
"license": "MIT",
"dependencies": {
"@alexbosworth/caporal": "1.4.4",

View file

@ -83,5 +83,5 @@
"postpublish": "docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 -t alexbosworth/balanceofsatoshis --push .",
"test": "tap --branches=1 --functions=1 --lines=1 --statements=1 -t 60 test/arrays/*.js test/balances/*.js test/chain/*.js test/display/*.js test/encryption/*.js test/lnd/*.js test/network/*.js test/nodes/*.js test/peers/*.js test/responses/*.js test/routing/*.js test/services/*.js test/swaps/*.js test/tags/*.js test/telegram/*.js test/wallets/*.js"
},
"version": "13.31.1"
"version": "13.31.2"
}

View file

@ -22,6 +22,7 @@ const description = 'bos open-balanced-channel';
const familyMultiSig = 0;
const interval = 1000 * 15;
const isOldNodeVersion = () => !Buffer.alloc(0).writeBigUInt64BE;
const keyFrom = n => n.substring(0, 66);
const minErrorCount = 4;
const times = 60;
@ -141,7 +142,7 @@ module.exports = ({address, after, ask, lnd, logger, recover}, cbk) => {
name: 'key',
};
return ask(initiateChannel, ({key}) => cbk(null, key));
return ask(initiateChannel, ({key}) => cbk(null, keyFrom(key)));
}],
// Generate the funding output multi-sig key that will receive all funds