Skip to content
Frank Castellucci edited this page Jan 20, 2018 · 31 revisions

Overviews, notes, etc. for sawtooth-uom development

Housekeeping

How I reset my environment to get to version 1.0 of HL/ST.

Sawtooth platform

  1. Remove all docker images using this command docker rmi -f $(docker images -a -q)
  2. Bring down the latest sawtooth compose file sawtooth-default.yaml
  3. Execute compose docker-compose -f ~/sawtooth.misc/sawtooth-default.yaml up

Sawtooth repo development

  1. Clone the latest repository
  2. Go to the root directory of the repo cd ~\sawtooth-core
  3. At a minimum do bin\build_all -l python
  4. I am using java so I do a bin\build_all -l java as well

Hijacked java intkey

Located in the examples folder, I've successfully created uom_intkey, a docker image with the compiler jar file that, when started, connects to the sawtooth-default-validator

To test this I need to submit transactions, which is possible with the sawtooth-rest-api-default interface, one would do something similar to:

curl --request POST --header "Content-Type: application/octet-stream" --data-binary @filename "http://localhost:8008/batches"

Where@filenamecontains an encoded transaction as per Transaction Creation

At the moment I am checking to see if I can work with the sawtooth-shell-default intkey utility but that I've changed the Transaction family name I may have to code up the equivalent as per the Transaction Creation link.

Clone this wiki locally