Skip to content

Commit

Permalink
feat(iroh-cli): Make ticket-inspect print full node ids (#2261)
Browse files Browse the repository at this point in the history
## Description

feat(iroh-cli): Make ticket-inspect print full node ids

also add the option to show them in zbase32 format for pkarr interop. I
need this in the workshop.

Before:

```
Blob ticket:
BlobTicket {
    node: NodeAddr {
        node_id: PublicKey(sq46x6htizk6222l),
        info: AddrInfo {
            relay_url: Some(
                RelayUrl(
                    "https://euw1-1.relay.iroh.network./",
                ),
            ),
            direct_addresses: {
                82.76.245.75:50824,
                192.168.1.131:50824,
                192.168.1.149:50824,
            },
        },
    },
    format: HashSeq,
    hash: Hash(
        cc4c9cd6bee4e1730447264b8290d83b3f901d88152ff0ecefb5e3050d0c500f,
    ),
}
```

After:

```
BlobTicket
  hash: zrgjzvv64tqxgbchezfyfegyhm7zahmicux7b3hpwxrqkdimkahq
  format: HashSeq
  Node Info
    node-id: sq46x6htizk6222lyz7jc4ofe3tymyw27joi3jzuhskavjczmcya
    relay-url: https://euw1-1.relay.iroh.network./
    addr: 82.76.245.75:50824
    addr: 192.168.1.131:50824
    addr: 192.168.1.149:50824
```

## Breaking Changes

None

## Notes & open questions

None

## Change checklist

- [x] Self-review.
- [x] Documentation updates if relevant.
- [x] Tests if relevant.
- [x] All breaking changes documented.
  • Loading branch information
rklaehn authored May 2, 2024
1 parent 3e104c8 commit 76429e2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 76429e2

Please sign in to comment.