bosnet / bosnet/sebak

`linked` field doesn't print with `--verbose`

Open
#473 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
44
Forks
12
PR merge metrics
No merged PRs in 30d

Description

When I test signature with create-account, --verbose doesn't print linked field in operations but it is used to making hash.

$ sebak wallet payment ${PUBKEY} 10000000000 ${SECRET} --create --verbose
{
  "T": "transaction",
  "H": {
    "version": "",
    "created": "2018-10-02T10:57:45.403746651+09:00",
    "signature": "4ty1Pv7Phc3CEeGLCP8mjZfEC259VR1MBgyVHzQXTcWjuSiwxVQ2AQKxy2HjGTCDrmdE29z8ZNZ6GxuDyEay2p9M"
  },
  "B": {
    "source": "GDIRF4UWPACXPPI4GW7CMTACTCNDIKJEHZK44RITZB4TD3YUM6CCVNGJ",
    "fee": "10000",
    "sequenceid": 0,
    "operations": [
      {
        "H": {
          "type": "create-account"
        },
        "B": {
          "target": "GDTEPFWEITKFHSUO44NQABY2XHRBBH2UBVGJ2ZJPDREIOL2F6RAEBJE4",
          "amount": "10000000000"
        }
      }
    ]
  }
}

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the sebak wallet payment ... --create --verbose entry point and trace how the create-account operation is serialized for verbose output and hashing. Compare the displayed operation with the fields included in the signature payload; done means the linked field used for hashing is also present in verbose output.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
blockchain, cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.