JssDWt / breez-sdk-go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BreezSDK – Go Package

The Breez SDK enables mobile developers to integrate lightning and bitcoin payments into their apps with a very shallow learning curve. More information can be found here.

πŸ‘¨β€πŸ”§ Installation

To install the package:

$ go get github.com/breez/breez-sdk-go

Supported platforms

This library embeds the BreezSDK runtime compiled as shared library objects, and uses cgo to consume it. A set of precompiled shared library objects are provided. Thus this library works (and is tested) on the following platforms:

Platform Architecture Triple Status
Linux amd64 x86_64-unknown-linux-gnu βœ…
aarch64 aarch64-unknown-linux-gnu βœ…
Darwin amd64 x86_64-apple-darwin βœ…
aarch64 aarch64-apple-darwin βœ…
Windows amd64 x86_64-pc-windows-msvc ⏳

πŸ“„ Usage

package main

import (
	"log"
	"github.com/breez/breez-sdk-go/breez_sdk"
)

func main() {
	seed, _ := breez_sdk.MnemonicToSeed("cruise clever syrup coil cute execute laundry general cover prevent law sheriff")

	log.Printf("Seed: %v", seed)
}

πŸ’‘ Information for Maintainers and Contributors

This repository is used to publish a Go package providing Go bindings to the Breez SDK's underlying Rust implementation. The Go bindings are generated using UniFFi Bindgen Go.

Any changes to the Breez SDK, the Go bindings, and the configuration of this Go package must be made via the breez-sdk repo.

To release a new version of this package, go to the Actions tab of this GitHub repository. Then select the Publish Go Package workflow and run it on the main branch. It will ask for a version as input. This allows you to specify the version (e.g., 0.0.1) of the breez-sdk repository that should be released as a Go package.

About

License:MIT License


Languages

Language:Go 100.0%