1.0.0 • Published 6 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 buildAvailable Commands
Run these commands under packages/example.
Vault
# Init vault
$ node . vault init# Created DID
$ node . vault createId# List
$ node . vault listKey Management
# Add Key
$ node . key add# Revoke Key
$ node . key revokeRight Management
# Add Right
$ node . right add# Revoke Right
$ node . right revokeDID Management
# Tombstone DID
$ node . tombstoneBefore Proof
# Register a Content Id
$ node . before-proof registerTransfer
# Transfer Hydra from the Genesis Wallet
$ node . transferCheck also
Please read about maintainers, contribution contract at https://github.com/Internet-of-People/morpheus-ts
1.0.0
6 years ago