Skip to content

Commit 44f43a6

Browse files
committed
asset: improve doc
1 parent a51eb22 commit 44f43a6

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

asset/group_key_test.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ import (
1818
"pgregory.net/rapid"
1919
)
2020

21+
// testCaseGkrEncodeDecode defines a unit test case for encoding
22+
// and decoding a group key reveal.
2123
type testCaseGkrEncodeDecode struct {
2224
testName string
2325

@@ -280,8 +282,8 @@ func TestGroupKeyRevealEncodeDecodeRapid(tt *testing.T) {
280282
})
281283
}
282284

283-
// TestNonSpendableLeafScript tests that the unspendable leaf script is actually
284-
// unspendable.
285+
// TestNonSpendableLeafScript tests that the non-spendable leaf script is
286+
// actually non-spendable.
285287
func TestNonSpendableLeafScript(t *testing.T) {
286288
var assetID ID
287289
_, err := rand.Read(assetID[:])
@@ -380,7 +382,7 @@ func TestNonSpendableLeafScript(t *testing.T) {
380382
spendTx.TxIn[0].Witness = finalWitness
381383

382384
// Finally, we'll execute the spend. This should fail if
383-
// the leaf is actually unspendable.
385+
// the leaf is actually non-spendable.
384386
vm, err := txscript.NewEngine(
385387
leafScript, spendTx, 0,
386388
txscript.StandardVerifyFlags, nil, sigHash,

0 commit comments

Comments
 (0)