Giter VIP home page Giter VIP logo

sawtooth-sdk-go's Introduction

Hyperledger Sawtooth

Hyperledger Sawtooth SDK for Go

Hyperledger Sawtooth is an enterprise solution for building, deploying, and running distributed ledgers (also called blockchains). It provides an extremely modular and flexible platform for implementing transaction-based updates to shared state between untrusted parties coordinated by consensus algorithms.

The Sawtooth SDK for Go provides a number of useful components that simplify developing Go applications which interface with the Sawtooth platform. These include modules to sign Transactions, read state, and create Transaction Processors. For full usage and installation instructions please reference the official Sawtooth documentation below:

Quickstart Instructions

To start using the SDK in your project, simply run inside your project root:

go get github.com/hyperledger/sawtooth-sdk-go

As of v0.1.4, this SDK is a Go Module and can simply be installed and without a further code generation step. For earlier versions, you must follow the instructions below to generate protobuf code with go generate.

Developer Instructions

Updating Dependencies

If any update requires any additional or upgraded dependencies, you should do the upgrade using go get, then run go mod tidy. In the case that any dependency added or modified, make sure to commit the updated go.mod and go.sum files.

Updating Protocol Buffers

When maintainers and contributors wish to update the protobuf definitions, they will need to run go generate after making any changes. go generate will remove the pre-existing protobuf directory, and generate a new protobuf directory based on .proto files in the protos directory. Any files modified in the protobuf directory should be committed.

Running go generate

To run go generate, you should simply change to the repo directory and execute the command:

cd sawtooth-sdk-go
go generate

The generate scripts do have some dependencies that can be non-trivial to install on some systems. In this case, you can use Docker to perform the generation as follows:

cd sawtooth-sdk-go
docker build . -t sawtooth-sdk-go
docker run -v $(pwd):/go/src/github.com/hyperledger/sawtooth-sdk-go sawtooth-sdk-go

sawtooth-sdk-go's People

Contributors

abdelkrim avatar agunde406 avatar annechenette avatar askmish avatar boydjohnson avatar christo4ferris avatar cianx avatar danintel avatar danxmack avatar dcmiddle avatar delventhalz avatar dplumb94 avatar eugeneyyy avatar feihujiang avatar grkvlt avatar jjason avatar jsmitchell avatar mfford avatar nconde avatar nick-drozd avatar ojalatodd avatar peterschwarz avatar pjholmes avatar rberg2 avatar rbuysse avatar ryanlassigbanks avatar tombarnes avatar trbs avatar vaporos avatar wkatsak avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

trecemgroup

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.