@0xcert/scaffold
Advanced tools
Comparing version 0.0.0-init to 0.0.0-rc1
{ | ||
"files": { | ||
"packages/0xcert-certification/README.md": "67aa845f14c33a23bded1800818b60a7d03e12ee", | ||
"packages/0xcert-certification/nodemon.json": "82b893373db9861f1df4b55d8ea68a5d37b118de", | ||
"packages/0xcert-certification/package.json": "971aaad353eb9d9de5bfb9671641f9050c8e6531", | ||
"packages/0xcert-certification/src/core/cert.ts": "5c0e033f85eb96bd476002bb266ba1678f4d5636", | ||
"packages/0xcert-certification/src/core/prop.ts": "3ed31c6bfd15ec6e3571103fb876ebcc1802a49c", | ||
"packages/0xcert-certification/src/index.ts": "ab74243dc42a1596a975f9aa15d0de77f0b0b6c5", | ||
"packages/0xcert-certification/src/tests/core/cert/calculate-instance-method.test.ts": "860a67b58ee5b094ffb7a81fc3e3ef32c97c41cb", | ||
"packages/0xcert-certification/src/tests/core/cert/disclose-instance-method.test.ts": "420f368083b65d506e9f412cd2c5d8de797ad4a9", | ||
"packages/0xcert-certification/src/tests/core/cert/imprint-instance-method.test.ts": "0b5488d5fe50fded124f5e1054471c5bab111ede", | ||
"packages/0xcert-certification/src/tests/core/cert/notarize-instance-method.test.ts": "79d252a73abe67fb08646f77725b22c6434cff4a", | ||
"packages/0xcert-certification/src/tests/core/helpers/schema.ts": "8730c4ba8aec597b4c1a525eb9c7020cf11bac55", | ||
"packages/0xcert-certification/src/tests/index.test.ts": "254c8650e024f1f31a9150e2c61d05a21fb51afe", | ||
"packages/0xcert-certification/src/utils/data.ts": "8e074e98212c11b60f17bdb08e35083deaa9a499", | ||
"packages/0xcert-certification/tsconfig.json": "4aeac3c20e45b7e477e82012eb7788f7dbb11bf3", | ||
"common/config/rush/npm-shrinkwrap.json": "1e2c74dfa4d1d62f13b04e6be9c20d6ee6682ca0" | ||
}, | ||
"arguments": "npx hayspec test " | ||
"files": {}, | ||
"arguments": "npx nyc npx hayspec test " | ||
} |
{ | ||
"name": "@0xcert/scaffold", | ||
"version": "0.0.0-init", | ||
"description": "", | ||
"license": "MIT" | ||
"version": "0.0.0-rc1", | ||
"description": "Overarching module with types, enums, and interfaces for easier development of interoperable modules.", | ||
"main": "./dist/index.js", | ||
"types": "./dist/index.d.ts", | ||
"scripts": { | ||
"build": "npm run clean && npx tsc", | ||
"clean": "rm -Rf ./dist", | ||
"lint": "npx tslint 'src/**/*.ts?(x)'", | ||
"test": "npx nyc npx hayspec test" | ||
}, | ||
"hayspec": { | ||
"require": [ | ||
"ts-node/register" | ||
], | ||
"match": [ | ||
"./src/tests/**/*.test.ts" | ||
] | ||
}, | ||
"nyc": { | ||
"extension": [ | ||
".ts" | ||
], | ||
"require": [ | ||
"ts-node/register" | ||
], | ||
"exclude": [ | ||
"src/tests" | ||
] | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/0xcert/framework.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/0xcert/framework/issues" | ||
}, | ||
"homepage": "https://github.com/0xcert/framework#readme", | ||
"keywords": [ | ||
"0xcert", | ||
"framework", | ||
"protocol", | ||
"asset", | ||
"value", | ||
"values", | ||
"currency", | ||
"token", | ||
"non-fungible", | ||
"fungible", | ||
"erc-721", | ||
"erc-20", | ||
"blockchain", | ||
"javascript", | ||
"typescript", | ||
"nodejs", | ||
"vuejs", | ||
"nuxtjs", | ||
"npm", | ||
"libraries", | ||
"smart-contract", | ||
"ethereum", | ||
"zxc" | ||
], | ||
"license": "MIT", | ||
"devDependencies": { | ||
"@hayspec/cli": "^0.8.3", | ||
"@hayspec/spec": "^0.8.3", | ||
"@types/node": "^10.12.10", | ||
"nyc": "^13.1.0", | ||
"ts-node": "^7.0.1", | ||
"tslint": "^5.12.1", | ||
"typescript": "^3.1.1" | ||
} | ||
} |
@@ -1,27 +0,7 @@ | ||
```ts | ||
// VERIFICATION EXAMPLE | ||
// I share an evidence file that proofs certain JSON paths (e.g. public JSON) | ||
// I have an object with just some data. | ||
// The function recreates a recipe for this partial data object and assignes is to the evidence file. | ||
// At this stage we modified evidence file with data we know. | ||
// We then calculate the imprint which must match the one stored in the token. | ||
// NOTE: Custom fields always pass. | ||
<img src="https://github.com/0xcert/framework/raw/master/assets/cover-sub.png" /> | ||
// WORDING | ||
// evidence -> consists of proofs -> forms an imprint | ||
// data object -> consists of properties (props) | ||
> Overarching module with types, enums, and interfaces for easier development of interoperable modules. | ||
// USAGE | ||
// Define arbitrary data object. | ||
const data = { ... }; | ||
// Define certificate with JSON schema definition. | ||
const cert = new Cert({ schema: { ...} }); | ||
// Notarize data object (returns all proofs for whole data object). | ||
const proofs = await cert.notarize(data); | ||
// Expose selected data keys (returns proofs and exposed values from which an imprint can be calculated). | ||
const proofs = await cert.disclose(exampleData, [ ...paths... ]); | ||
// Verify data object against proofs generated with function `disclose` (if object is valid, an imprint is the right root hash). | ||
const imprint = await cert.calculate(data, proofs); | ||
// Generate root hash from complete data object. | ||
const imprint = await cert.imprint(data); | ||
``` | ||
The [0xcert Framework](https://docs.0xcert.org) is a free and open-source JavaScript library that provides tools for building powerful decentralized applications. Please refer to the [official documentation](https://docs.0xcert.org) for more details. | ||
This module is one of the bricks of the [0xcert Framework](https://docs.0xcert.org). It's written with [TypeScript](https://www.typescriptlang.org) and it's actively maintained. The source code is available on [GitHub](https://github.com/0xcert/framework) where you can also find our [issue tracker](https://github.com/0xcert/framework/issues). |
@@ -1,2 +0,6 @@ | ||
export * from './core/cert'; | ||
export * from './core/prop'; | ||
export * from './assets/metadata'; | ||
export * from './core/provider'; | ||
export * from './core/asset-ledger'; | ||
export * from './core/mutation'; | ||
export * from './core/order-gateway'; | ||
export * from './core/value-ledger'; |
@@ -12,2 +12,2 @@ { | ||
} | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
29610
39
855
1
1
0
7
8
1