Skip to content

Commit df30b48

Browse files
committed
input: export NUMS key parser.
1 parent fb429d6 commit df30b48

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

input/script_utils.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ var (
2929
SequenceLockTimeSeconds = uint32(1 << 22)
3030
)
3131

32-
// mustParsePubKey parses a hex encoded public key string into a public key and
32+
// MustParsePubKey parses a hex encoded public key string into a public key and
3333
// panic if parsing fails.
34-
func mustParsePubKey(pubStr string) btcec.PublicKey {
34+
func MustParsePubKey(pubStr string) btcec.PublicKey {
3535
pubBytes, err := hex.DecodeString(pubStr)
3636
if err != nil {
3737
panic(err)
@@ -55,7 +55,7 @@ var (
5555
// https://github.com/lightninglabs/lightning-node-connect/tree/
5656
// master/mailbox/numsgen, with the seed phrase "Lightning Simple
5757
// Taproot".
58-
TaprootNUMSKey = mustParsePubKey(TaprootNUMSHex)
58+
TaprootNUMSKey = MustParsePubKey(TaprootNUMSHex)
5959
)
6060

6161
// Signature is an interface for objects that can populate signatures during

0 commit comments

Comments
 (0)