Git Product home page Git Product logo

lbx's Introduction

lbx:

Command-line tool for working with LNP/BP technology stack

Install

Get the dependencies

sudo apt-get install cargo

Clone and compile lbx

git clone https://github.com/lnp-bp/lbx
cd lbx
cargo build

If the build fails, make sure you are using nightly channel for rust compiler:

rustup default nightly

Sample commands

Note: run lbx command in target/debug or target/release directories inside the repository.

Commits to the message by tweaking the public key according to LNPBP-1 standard:

lbx pubkey-commit "The message" 02d1d80235fa5bba42e9612a7fe7cd74c6b2bf400c92d866f28d429846c679cceb

Embeds commitment to two messages into partially-signed bitcoin transaction:

lbx cv-commit test/data/dest_tx.psbt test/data/client_proofs.rgb \
    -f 404 -e 88b5990f3ff597306bb82cf38ac0d3ecbb7117d57d7424eab20cc938a5083bb1 \
    --message test/data/message1.txt \
    --message test/data/message2.txt \
    --tx test/data/source_tx.psbt \
    -v -v # Asking to be verbose

Issues fungible asset named "Candy" with ticker $CNDY for Bitcoin Signet network:

lbx fungible-issue --signet \
    CNDY Candies \
    1000000 \
    c202e4bbda988744f45650fc207da3531209dd1813efd701042d21692844bb2f 0 \
    test/data/candies.rgb \
    -v -v # Asking to be verbose

Generates client-validated proof of the fungible asset transfer:

lbx fungible-transfer c202e4bbda988744f45650fc207da3531209dd1813efd701042d21692844bb2f:1:100 -v -v

lbx's People

Contributors

dr-orlovsky avatar maxhillebrand avatar ukolovaolga avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

lbx's Issues

Add private / public key creation

Some of the existing commands require a public key as input. Currently there is no command in lbx that generates a random private key and computes the public key. It can be either a single private key [careful with backups], or a hierarchical deterministic key tree.

Arc TranscodeFull not found in this scope

I'm trying to install lbx but get an error after doing the command cargo install --path . In my believe I have all the things installed which needed. The error says:
error[E0412]: cannot find type Arc in this scope
--> /home/perry/.cargo/git/checkouts/rust-lnpbp-1c6b6ac6d4fb658b/12420ba/src/lnp/session/session.rs:33:13
transcode: Arc,
help: consider importing one of these items

use crate::lnp::session::node_addr::Arc;
use std::sync::Arc;

Seems I have to add a use line in session.rc. I tried this, but did not work. Any help appreciated. I'm on Ubuntu 18.04.
rustc 1.46.0-nightly (9d09331e0 2020-07-12)

cargo build error

$ cargo build
(lots of ok output without any errors)
...
   Compiling bitcoin v0.23.0 (https://github.com/pandoracore/rust-bitcoin?branch=develop#ddb3efff)
error[E0554]: #![feature] may not be used on the stable release channel
  --> /home/user/.cargo/git/checkouts/rust-bitcoin-fad636a717a6bb07/ddb3eff/src/lib.rs:55:1
   |
55 | #![feature(use_extern_macros)]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to previous error

For more information about this error, try `rustc --explain E0554`.
error: Could not compile `bitcoin`.

To learn more, run the command again with --verbose.

Happens both with v0.1.0-alpha.1 and master. I'm running Rust 1.37 under Gentoo Linux.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.