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

26
libwallet/init.go Normal file
View File

@@ -0,0 +1,26 @@
package libwallet
import (
"runtime/debug"
)
// Listener is an interface implemented by the apps to receive notifications
// of data changes from the libwallet code. Each change is reported with a
// string tag identifying the type of change.
type Listener interface {
OnDataChanged(tag string)
}
// Config defines the global libwallet configuration.
type Config struct {
DataDir string
Listener Listener
}
var cfg *Config
// Init configures the libwallet
func Init(c *Config) {
debug.SetTraceback("crash")
cfg = c
}