From 9f21fbbfd52c2bd819d737938720976e9f3dc9e0 Mon Sep 17 00:00:00 2001 From: Evgeniy Kulikov Date: Thu, 21 Nov 2019 17:32:08 +0300 Subject: [PATCH] docs: add doc comment for LoadPrivateKey --- load.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/load.go b/load.go index 601e89e..7c61277 100644 --- a/load.go +++ b/load.go @@ -8,6 +8,10 @@ import ( "github.com/pkg/errors" ) +// LoadPrivateKey allows to load private key from various formats: +// - wif string +// - hex string +// - file path (D-bytes or SEC 1 / ASN.1 DER form) func LoadPrivateKey(val string) (*ecdsa.PrivateKey, error) { if data, err := ioutil.ReadFile(val); err == nil { return UnmarshalPrivateKey(data)