nodesigner: compact sigs should reference compact pubkeys
This commit is contained in:
1 parent
3b84db1f25
commit
14f49d4a22
1 file changed
+1
-1
+1
-1
@@ -53,7 +53,7 @@ func (n *nodeSigner) SignCompact(msg []byte) ([]byte, error) {
|
|||||||
digest := chainhash.DoubleHashB(msg)
|
digest := chainhash.DoubleHashB(msg)
|
||||||
|
|
||||||
// Should the signature reference a compressed public key or not.
|
// Should the signature reference a compressed public key or not.
|
||||||
isCompressedKey := false
|
isCompressedKey := true
|
||||||
|
|
||||||
// btcec.SignCompact returns a pubkey-recoverable signature
|
// btcec.SignCompact returns a pubkey-recoverable signature
|
||||||
sig, err := btcec.SignCompact(btcec.S256(), n.privKey, digest,
|
sig, err := btcec.SignCompact(btcec.S256(), n.privKey, digest,
|
||||||
|
|||||||
Reference in new issue
Block a user