nainaidedebug

command
v0.0.0-...-cf049ad Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 3, 2021 License: Apache-2.0 Imports: 20 Imported by: 0

README

Barkisdebug

Simple tool for simple debugging.

We try to accept both hex and base64 formats and provide a useful response.

Note we often encode bytes as hex in the logs, but as base64 in the JSON.

Pubkeys

The following give the same result:

barkisdebug pubkey TZTQnfqOsi89SeoXVnIw+tnFJnr4X8qVC0U8AsEmFk4=
barkisdebug pubkey 4D94D09DFA8EB22F3D49EA17567230FAD9C5267AF85FCA950B453C02C126164E

Txs

Pass in a hex/base64 tx and get back the full JSON:

barkisdebug tx <hex or base64 transaction>

Hack

This is a command with boilerplate for using Go as a scripting language to hack on an existing Barkis state.

Currently we have an example for the state of barkis-6001 after it crashed. If you run barkisdebug hack $HOME/.barkisd on that state, it will do a binary search on the state history to find when the state invariant was violated.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL