Update project structure and build process

This commit is contained in:
Juan Pablo Civile
2025-05-13 11:10:08 -03:00
parent 124e9fa1bc
commit d9f3e925a4
277 changed files with 15321 additions and 930 deletions

20
libwallet/publickey.go Executable file
View File

@@ -0,0 +1,20 @@
package libwallet
import (
"fmt"
"github.com/btcsuite/btcd/btcec"
)
type PublicKey struct {
key *btcec.PublicKey
}
func NewPublicKeyFromBytes(bytes []byte) (*PublicKey, error) {
key, err := btcec.ParsePubKey(bytes, btcec.S256())
if err != nil {
return nil, fmt.Errorf("NewPublicKeyFromBytes: failed to parse pub key: %w", err)
}
return &PublicKey{key}, nil
}