1.0.0 • Published 4 years ago
@internet-of-people/examples v1.0.0
Morpheus Examples
This repository contains example codes how can Morpheus be used. Also, you can even test it via command line commands described below.
Requirements
- NodeJS 12
- A running Hydra node. It can be local, testnet/devnet/mainnet.
Install
Run in the root of the morpheus-ts project.
$ npm install
$ npm run build
Available Commands
Run these commands under packages/example
.
Vault
# Init vault
$ node . vault init
# Created DID
$ node . vault createId
# List
$ node . vault list
Key Management
# Add Key
$ node . key add
# Revoke Key
$ node . key revoke
Right Management
# Add Right
$ node . right add
# Revoke Right
$ node . right revoke
DID Management
# Tombstone DID
$ node . tombstone
Before Proof
# Register a Content Id
$ node . before-proof register
Transfer
# Transfer Hydra from the Genesis Wallet
$ node . transfer
Check also
Please read about maintainers, contribution contract at https://github.com/Internet-of-People/morpheus-ts
1.0.0
4 years ago