Skip to content
Golang implementation of bbclib in BBc-1
Branch: develop
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example
.travis.yml
CHANGELOG.md
LICENSE
README.md
asset.go
asset_test.go
bbclib.go
bbclib_test.go
crossref.go
crossref_test.go
event.go
event_test.go
keypair.go
keypair_test.go
pointer.go
pointer_test.go
prepare.sh
reference.go
relation.go
relation_test.go
signature.go
signature_test.go
transaction.go
transaction_test.go
utils.go
witness.go
witness_test.go
zlibutil.go
zlibutil_test.go

README.md

bbclib-go

License Build Status Go Report Card Coverage Status Maintainability

Golang implementation of bbc1.core.bbclib and bbc1.core.libs modules in https://github.com/beyond-blockchain/bbc1. This reposigory is originally from https://github.com/quvox/bbclib-go

Features

dependencies

Usage

go get -u github.com/beyond-blockchain/bbclib-go

Building an external library is also required. When "go get" is done, you will find github.com/beyond-blockchain/bbclib-go/ directory in ${GOPATH}/src. Then, execute the following commands:

cd ${GOPATH}/src/github.com/beyond-blockchain/bbclib-go
bash prepare.sh

If you want to use this module in an AWS environment (EC2 or Lambda), do as follows:

cd ${GOPATH}/github.com/beyond-blockchain/bbclib-go
bash prepare.sh aws

The preparation script (prepare.sh) produces libbbcsig.a, which is a static link library for signing/verifying a transaction. Building libbbcsig.a takes long time, so be patient.

After finishing the compilation, you are ready for "go install".

go install github.com/beyond-blockchain/bbclib-go

NOTE: example/ directory includes a sample code for this module. There are a document and a preparation script.

Prepare for development (module itself)

For linux/mac

sh prepare.sh

For Amazon Lambda, you need docker and do the following:

sh prepare.sh aws

After finishing prepare.sh script, you will find libbbcsig.a and libbbcsig.h, which are used by keypair.go for signing/verifying.

You can’t perform that action at this time.