Socket
Socket
Sign inDemoInstall

chainpoint-proof-json-schema

Package Overview
Dependencies
Maintainers
2
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chainpoint-proof-json-schema - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

LICENSE

358

docs/samples/chainpoint-proof-v3.json
{
"@context": "https://w3id.org/chainpoint/v3",
"type": "Chainpoint",
"hash": "bdf8c9bdf076d6aff0292a1c9448691d2ae283f2ce41b045355e2c8cb8e85ef2",
"hash_id_node": "5cf0a860-0f52-11e7-947d-7fde4e7ca024",
"hash_submitted_node_at": "2017-03-23T11:30:33Z",
"hash_id_core": "e6bf9cc1-67dd-11e7-af4a-e7bc0011940a",
"hash_submitted_core_at": "2017-07-13T15:14:02Z",
"branches": [{
"label": "root_branch",
"ops": [{
"l": "bdf8c9bdf076d6aff0292a1c9448691d2ae283f2ce41b045355e2c8cb8e85ef2"
},
{
"op": "sha-256"
},
{
"r": "72de6fe5c8f3505b58436c86b87d2cdf7fca3a2edb485f6642e18249cedf2d68"
},
{
"op": "sha-256"
},
{
"r": "ee0df617d253f12be5ab59b4b723c35aa88075df33ad0c46d8231c9df8de3d35"
},
{
"op": "sha-256"
},
{
"anchors": [{
"type": "cal",
"anchor_id": "1027",
"uris": [
"http://a.cal.chainpoint.org/1027/root",
"http://b.cal.chainpoint.org/1027/root"
"hash": "2e75eaf17b8345c67234dfa92e867541ef41dda08baa6f8d5464fac432950794",
"hash_id_node": "38c43ae0-98bb-11e7-b797-01d8792cb1c1",
"hash_submitted_node_at": "2017-09-13T19:39:13Z",
"hash_id_core": "3984a4b0-98bb-11e7-84e2-0100b26c7d12",
"hash_submitted_core_at": "2017-09-13T19:39:14Z",
"branches": [
{
"label": "cal_anchor_branch",
"ops": [
{
"l": "node_id:38c43ae0-98bb-11e7-b797-01d8792cb1c1"
},
{
"op": "sha-256"
},
{
"l": "core_id:3984a4b0-98bb-11e7-84e2-0100b26c7d12"
},
{
"op": "sha-256"
},
{
"l": "nist:1505331480:be15727665537cfe7f76d5322009adcfbb5e41492b2ba5cabb32dfd221c16e5c2b9265b06271a7fd22644cf8182ffaa83d2ec1560f61b6b1f32555280eeb1982"
},
{
"op": "sha-256"
},
{
"l": "8e8aef627e7d2d5839d482e788a75e513ce065c7f6057937260d632797d1f460"
},
{
"op": "sha-256"
},
{
"r": "b8b87b86286fc735b9f18130077abe342bffc11069f22db4010d27a8c21ddf7b"
},
{
"op": "sha-256"
},
{
"l": "7d41b0dc2d690d155c30a99cedfd0bd616aaffebb09e040b66d73496a60acc6c"
},
{
"op": "sha-256"
},
{
"l": "591:1505331557:1:https://b.chainpoint.org:cal:591"
},
{
"r": "33afa4e067674743222bcbf7d43d5143e4512a3be202ca3b2f04f2215c6587aa"
},
{
"op": "sha-256"
},
{
"anchors": [
{
"type": "cal",
"anchor_id": "591",
"uris": [
"https://b.chainpoint.org/calendar/591/hash"
]
}
]
}]
}
],
"branches": [{
"label": "branch_01",
"ops": [{
"l": "72de6fe5c8f3505b58436c86b87d2cdf7fca3a2edb485f6642e18249cedf2d68"
},
{
"op": "sha-256"
},
{
"l": "09096dbc49b7909917e13b795ebf289ace50b870440f10424af8845fb7761ea5"
},
{
"op": "sha-256"
},
{
"l": "283d2558a4a3b7c56136984f9211de42637b58c41576ed8d9627bf5423c7966c"
},
{
"op": "sha-256"
},
{
"anchors": [{
"type": "eth",
"anchor_id": "d3e7ec84c3dbe86f7d9a8ea68ae4ded6c0b012be519f433a07f15bd612fb47a9"
}]
}
]
},
{
"label": "branch_02",
"ops": [{
"l": "cb0dbbedb5ec5363e39be9fc43f56f321e1572cfcf304d26fc67cb6ea2e49faf"
},
{
"op": "sha-256"
},
{
"r": "cb9dbbedb5ec5363e39be9fc43f56f321e1572cfcf304d26fc67cb6ea2e49faf"
},
{
"op": "sha-256"
},
{
"l": "0100000001d94a7f924e49246a136a95ceb70b7c6758b2a65f7cca2b0fa144cbe7c39f217a010000006a4730440220504a4571c4263c83d51399ef14240a3bb06af7159fb6dbb6db182e7e7901edf802202942e98a20d295753155c5249a584f6261a6b31ce603720b7c37e0e71ba742070121035b690114679d44d75b75aa170e34596c94c778f589bcb9063b0e4e293fcacd1dffffffff020000000000000000226a20"
},
{
"r": "7b0d3e00000000001976a9147003cc5915f6c23fd512b38daeeecfdde7a587e988ac00000000"
},
{
"op": "sha-256-x2"
},
{
"l": "ca978112ca1bbdcafac231b39a23dc4da786eff8147c4e72b9807785afee48bb"
},
{
"op": "sha-256-x2"
},
{
"r": "3e23e8160039594a33894f6564e1b1348bbd7a0088d42c4acb73eeaed59c009d"
},
{
"op": "sha-256-x2"
},
{
"l": "2e7d2c03a9507ae265ecf5b5356885a53393a2029d241394997265a1a25aefc6"
},
{
"op": "sha-256-x2"
},
{
"l": "18ac3e7343f016890c510e93f935261169d9e3f565436429830faf0934f4f8e4"
},
{
"op": "sha-256-x2"
},
{
"l": "3f79bb7b435b05321651daefd374cdc681dc06faa65e374e38337b88ca046dea"
},
{
"op": "sha-256-x2"
},
{
"l": "1516f000de6cff5c8c63eef081ebcec2ad2fdcf7034db16045d024a90341e07d"
},
{
"op": "sha-256-x2"
},
{
"l": "77c654b3d1605f78ed091cbd420c939c3feff7d57dc30c171fa45a5a3c81fd7d"
},
{
"op": "sha-256-x2"
},
{
"l": "a292780cc748697cb499fdcc8cb89d835609f11e502281dfe3f6690b1cc23dcb"
},
{
"op": "sha-256-x2"
},
{
"l": "cb4990b9a8936bbc137ddeb6dcab4620897b099a450ecdc5f3e86ef4b3a7135c"
},
{
"op": "sha-256-x2"
},
{
"l": "982ff4a3d60f874b31ab55db58ad9219f1ea42f688395e920d0eb42f59168997"
},
{
"op": "sha-256-x2"
},
{
"l": "f290eea144513d618850288844775150a17eb9df6b808caca2d748ee4cd3c800"
},
{
"op": "sha-256-x2"
},
{
"l": "078d336637acedc797dec33eee0a693f7a335bc653abeb3161a50e2945515b9e"
},
{
"op": "sha-256-x2"
},
{
"anchors": [{
"type": "btc",
"anchor_id": "434702"
}]
}
]
}
]
}]
}
],
"branches": [
{
"label": "btc_anchor_branch",
"ops": [
{
"l": "33afa4e067674743222bcbf7d43d5143e4512a3be202ca3b2f04f2215c6587aa"
},
{
"op": "sha-256"
},
{
"l": "a88d4dc5051a1668db1534beb5956aaaf1883892af618aec34cd92184987a7a2"
},
{
"op": "sha-256"
},
{
"l": "4e37d3310941bc9fcaeee1476ee3971cdbd73964e5928a1e23148c540aeefd39"
},
{
"op": "sha-256"
},
{
"r": "1c520a1bbac8fb40810b9bc11b29e6628ac41a45771bc73884dbd8167910e8fe"
},
{
"op": "sha-256"
},
{
"r": "6bffd2f130c357082ea629b77436df039abeedbb911f848d0bf18ce41c89aea0"
},
{
"op": "sha-256"
},
{
"l": "010000000166970e159b0d5c41f9023e9265f160061ba0db4fb93abb9862049fdc3bbe9b19010000006a473044022052651258908a534d6cf2ba0fda47a67ee007ec24bf2a57947b0da365033029860220381380cd1b5e31c1e7d1505efb390321286720d8773a0f8542bbbfbeddd64f8f0121032695ca0d3c0f7f8082a6ef66e7127e48d4eb99bef86be99432b897c485962fa8ffffffff020000000000000000226a20"
},
{
"r": "dc317800000000001976a9149f1f4038857beedd34cc5ba9f26ac7a20c04d51988ac00000000"
},
{
"op": "sha-256-x2"
},
{
"r": "0ccde01ee0d86f0c838925d0dd2242f052e5c25250bfb611fbb528ce79330738"
},
{
"op": "sha-256-x2"
},
{
"l": "fd7a8e5e5d1badb3c5223c8ee46e30f13af6631c97657c5e0d66cb2b7ba6e569"
},
{
"op": "sha-256-x2"
},
{
"r": "f09acf524dfdf864b65206aeb251505d05ff22601b5ac621351157c0a1acd44b"
},
{
"op": "sha-256-x2"
},
{
"l": "99f6f73da68f212e732434c8948cd788ade387233032053283666581fe29dc40"
},
{
"op": "sha-256-x2"
},
{
"r": "8e738efd27645e8a8dc6abd2e041c34e2c2aae5e244d7c4c1fdff00b78e0f487"
},
{
"op": "sha-256-x2"
},
{
"r": "8ab30e09a40186124fbf8fe59246991c573f366e63739ba88eb6e5b96c7ede91"
},
{
"op": "sha-256-x2"
},
{
"l": "dfdd9a4cb386820b9ffac390b0e339a8aefbf11f5d9515f410240d297ec6ca72"
},
{
"op": "sha-256-x2"
},
{
"l": "8fc3b3e4297292af2701d6ce4835b232c1725ce82bad910de163f3d62629ff85"
},
{
"op": "sha-256-x2"
},
{
"r": "a6674ea9a11ec9abd43d9ea7342dbd6bf35f32fd9e60437cc809457f72f0e131"
},
{
"op": "sha-256-x2"
},
{
"r": "8a678c207470becf64a37397adecb8b8961f30d3ac40b65bd7b66900731266f9"
},
{
"op": "sha-256-x2"
},
{
"r": "9384c24d79ad908e60c4e7f03ac8e9c5e13108573039affe7a1628a378859b70"
},
{
"op": "sha-256-x2"
},
{
"anchors": [
{
"type": "btc",
"anchor_id": "485090",
"uris": [
"https://b.chainpoint.org/calendar/638/data"
]
}
]
}
]
}
]
}
]
}
'use strict'
/* Copyright 2017 Tierion
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
const chainpointSchemaV3 = {

@@ -4,0 +16,0 @@ '$schema': 'http://json-schema.org/draft-04/schema#',

{
"name": "chainpoint-proof-json-schema",
"version": "1.0.0",
"version": "1.0.1",
"description": "A JSON Schema (Draft 04) validator for Chainpoint v3 Proofs",

@@ -8,3 +8,3 @@ "main": "index.js",

"author": "Glenn Rempe <glenn@tierion.com>",
"license": "MIT",
"license": "Apache-2.0",
"dependencies": {

@@ -11,0 +11,0 @@ "is-my-json-valid": "^2.16.0"

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc