input: export NUMS key parser.
This commit is contained in:
1 file changed
+3
-3
@@ -29,9 +29,9 @@ var (
|
|||||||
SequenceLockTimeSeconds = uint32(1 << 22)
|
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.
|
// panic if parsing fails.
|
||||||
func mustParsePubKey(pubStr string) btcec.PublicKey {
|
func MustParsePubKey(pubStr string) btcec.PublicKey {
|
||||||
pubBytes, err := hex.DecodeString(pubStr)
|
pubBytes, err := hex.DecodeString(pubStr)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
@@ -55,7 +55,7 @@ var (
|
|||||||
// https://github.com/lightninglabs/lightning-node-connect/tree/
|
// https://github.com/lightninglabs/lightning-node-connect/tree/
|
||||||
// master/mailbox/numsgen, with the seed phrase "Lightning Simple
|
// master/mailbox/numsgen, with the seed phrase "Lightning Simple
|
||||||
// Taproot".
|
// Taproot".
|
||||||
TaprootNUMSKey = mustParsePubKey(TaprootNUMSHex)
|
TaprootNUMSKey = MustParsePubKey(TaprootNUMSHex)
|
||||||
)
|
)
|
||||||
|
|
||||||
// Signature is an interface for objects that can populate signatures during
|
// Signature is an interface for objects that can populate signatures during
|
||||||
|
|||||||
Reference in new issue
Block a user