Skip to content

Commit f32e14b

Browse files
author
sammyne
committed
test(examples): doc the private key conversion routine
1 parent e156ebe commit f32e14b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

example_test.go

+2
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,8 @@ func Example_audits() {
198198
// Audit key N(m/*): xpub661MyMwAqRbcFtXgS5sYJABqqG9YLmC4Q1Rdap9gSE8NqtwybGhePY2gZ29ESFjqJoCu1Rupje8YtGqsefD265TMg7usUDFdp6W1EGMcet8
199199
}
200200

201+
// this example demonstrates the conversion from the extended private key to
202+
// to its corresponding secp256k1 private key
201203
func ExamplePrivateKey_ToECPrivate() {
202204
xprv, _ := bip32.ParsePrivateKey("xprv9s21ZrQH143K3QTDL4LXw2F7HEK3wJUD2nW2nRk4stbPy6cq3jPPqjiChkVvvNKmPGJxWUtg6LnF5kejMRNNU3TGtRBeJgk33yuGBxrMPHi")
203205

0 commit comments

Comments
 (0)