mirror of
https://github.com/muun/recovery.git
synced 2025-11-12 06:50:18 -05:00
Release 2.0.0
This commit is contained in:
5
vendor/github.com/muun/libwallet/publickey.go
generated
vendored
5
vendor/github.com/muun/libwallet/publickey.go
generated
vendored
@@ -1,8 +1,9 @@
|
||||
package libwallet
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/btcsuite/btcd/btcec"
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
type PublicKey struct {
|
||||
@@ -12,7 +13,7 @@ type PublicKey struct {
|
||||
func NewPublicKeyFromBytes(bytes []byte) (*PublicKey, error) {
|
||||
key, err := btcec.ParsePubKey(bytes, btcec.S256())
|
||||
if err != nil {
|
||||
return nil, errors.Wrapf(err, "NewPublicKeyFromBytes: failed to parse pub key")
|
||||
return nil, fmt.Errorf("NewPublicKeyFromBytes: failed to parse pub key: %w", err)
|
||||
}
|
||||
|
||||
return &PublicKey{key}, nil
|
||||
|
||||
Reference in New Issue
Block a user