mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-06-24 23:12:31 +00:00
txscript: Fix docs to match function.
Changed the order of return values described in the docs to be consistent with the function’s actual return value signature.
This commit is contained in:
parent
ff0c787237
commit
6e133b58da
@ -12,8 +12,8 @@ import (
|
|||||||
"github.com/btcsuite/btcd/wire"
|
"github.com/btcsuite/btcd/wire"
|
||||||
)
|
)
|
||||||
|
|
||||||
// genRandomSig returns a random message, public key, and a signature of the
|
// genRandomSig returns a random message, a signature of the message under the
|
||||||
// message under the public key. This function is used to generate randomized
|
// public key and the public key. This function is used to generate randomized
|
||||||
// test data.
|
// test data.
|
||||||
func genRandomSig() (*wire.ShaHash, *btcec.Signature, *btcec.PublicKey, error) {
|
func genRandomSig() (*wire.ShaHash, *btcec.Signature, *btcec.PublicKey, error) {
|
||||||
privKey, err := btcec.NewPrivateKey(btcec.S256())
|
privKey, err := btcec.NewPrivateKey(btcec.S256())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user