From f707f6449cc2205903ea02f4c260b0e017b17855 Mon Sep 17 00:00:00 2001 From: Evgeniy Kulikov Date: Thu, 21 Nov 2019 17:29:34 +0300 Subject: [PATCH] docs: describe LoadPrivateKey in readme --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 2fa03b6..de6b3de 100644 --- a/README.md +++ b/README.md @@ -60,3 +60,16 @@ wif, err := crypto.WIFEncode(sk) // if something went wrong, returns error: skFromWIF, err := crypto.WIFDecode(wif) ``` + +### LoadPrivateKey + +``` +// Load private key from wif format +sk, err := crypto.LoadPrivateKey(wif_string) + +// Load private key from hex string +sk, err := crypto.LoadPrivateKey(hex_string) + +// Load private key from file +sk, err := crypto.LoadPrivateKey(file_path) +```