docs: describe LoadPrivateKey in readme
This commit is contained in:
parent
d059767e79
commit
f707f6449c
1 changed files with 13 additions and 0 deletions
13
README.md
13
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)
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue