Skip to content

Commit

Permalink
input: export NUMS key parser.
Browse files Browse the repository at this point in the history
  • Loading branch information
ziggie1984 committed Dec 9, 2024
1 parent fb429d6 commit df30b48
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions input/script_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ var (
SequenceLockTimeSeconds = uint32(1 << 22)
)

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

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

0 comments on commit df30b48

Please sign in to comment.