Skip to content

Commit

Permalink
Merge pull request #183 from BuxOrg/feat/add-example-for-generating-x…
Browse files Browse the repository at this point in the history
…priv-and-xpub

feat(BUX-191): add example for generate function
  • Loading branch information
dorzepowski authored Jan 24, 2024
2 parents 49c96fe + 3c3329f commit 377843e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions xpriv/xpriv_generate_example_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package xpriv

import "fmt"

func ExampleGenerate() {
keys, _ := Generate()

fmt.Println("xpriv:", keys.XPriv())
fmt.Println("xpub:", keys.XPub().String())
}

0 comments on commit 377843e

Please sign in to comment.