tydids-p2p-tx2

0.5.1 • Public • Published

tydids-p2p-tx2

TyDIDs extension for the tx2 package of PM2.io

npm npm CO2Offset Join the chat at https://gitter.im/stromdao/tydids-p2p

Imagine a dataset that is available somewhere in the world might be accessed everywhere. How? You just need to know its address!

  • Decide who is allowed to see this dataset.
  • Forget about protocols, p2p, request-responds, polling for changes.
  • Set a value in your dataset with one line of code
  • Subscribe to changes with another single line of code

This is TyDIDs.

Quick Intro

Will expose fields/values of a DID presentation as metrics in pm2.

Quick Walk Through:

npm install -g tydids-p2p-tx2
pm2 start tydids-tx2 -- -p 0xA22bcEb9BCcEbcDd207eb24F4139abfc6a97EeB3
sleep 20
pm2 show tydids-tx2
...
Code metrics value
┌────────────────────────┬───────────────────────────────────────────────────────────┐
│ Used Heap Size         │ 56.18 MiB                                                 │
│ Heap Usage             │ 70.75 %                                                   │
│ Heap Size              │ 79.41 MiB                                                 │
│ Event Loop Latency p95 │ 15.77 ms                                                  │
│ Event Loop Latency     │ 0.34 ms                                                   │
│ Active handles         │ 9                                                         │
│ Active requests        │ 0                                                         │
│ value                  │ 1647821423539                                             │
│ iss                    │ did:ethr:6226:0xA22bcEb9BCcEbcDd207eb24F4139abfc6a97EeB3  │
│ _revision              │ 0x3bcFE2Ce88E0051659cb2D74C50Fbb9B1068b981                │
│ _address               │ 0xA22bcEb9BCcEbcDd207eb24F4139abfc6a97EeB3                │
│ iat                    │ 1647821424                                                │
└────────────────────────┴───────────────────────────────────────────────────────────┘
...

Package Sidebar

Install

npm i tydids-p2p-tx2

Weekly Downloads

1

Version

0.5.1

License

Apache-2.0

Unpacked Size

27.3 kB

Total Files

8

Last publish

Collaborators

  • zoernert