Website: https://evan.network Gitter: https://gitter.im/evannetwork Documentation: https://api-blockchain-core.readthedocs.io Wiki: https://evannetwork.github.io
Happy hacking :)
{ | |
"name": "evan.network testcore", | |
"engine": { | |
"authorityRound": { | |
"params": { | |
"stepDuration": "3", | |
"validators": { | |
"multi": { | |
"0": { | |
"list": [ |
const { | |
BbsBlsSignature2020, | |
BbsBlsSignatureProof2020, | |
deriveProof | |
} = require("@mattrglobal/jsonld-signatures-bbs"); | |
const { extendContextLoader, sign, verify, purposes } = require("jsonld-signatures"); | |
const { resolver } = require('@transmute/did-key.js'); | |
const { documentLoaders } = require("jsonld"); | |
const bs58 = require('bs58'); |
Website: https://evan.network Gitter: https://gitter.im/evannetwork Documentation: https://api-blockchain-core.readthedocs.io Wiki: https://evannetwork.github.io
Happy hacking :)
Website: https://evan.network | |
Gitter: https://gitter.im/evannetwork | |
Documentation: https://api-blockchain-core.readthedocs.io | |
Wiki: https://evannetwork.github.io | |
Happy hacking :) |
// require blockchain-core dependencies | |
const IpfsApi = require('ipfs-api'); | |
const Web3 = require('web3'); | |
// require blockchain-core | |
const { Ipfs, createDefaultRuntime, PropertyType, ModificationType } = require('@evan.network/api-blockchain-core'); | |
// ipfs configuration for evan.network testnet storage | |
const ipfsConfig = {host: 'ipfs.test.evan.network', port: '443', protocol: 'https'}; | |
// web3 provider config (currently evan.network testcore) |
// require blockchain-core dependencies | |
const IpfsApi = require('ipfs-api'); | |
const Web3 = require('web3'); | |
const fs = require('fs') | |
// require blockchain-core | |
const { Ipfs, createDefaultRuntime, Executor } = require('@evan.network/api-blockchain-core'); | |
const runtimeConfig = { | |
// account map to blockchain accounts with their private key |
pragma solidity ^0.4.20; | |
// interface for identity, that holds verifications | |
interface VerificationHolder { | |
function getVerification(bytes32 _verificationId) | |
external | |
view | |
returns( | |
uint256 topic, | |
uint256 scheme, |
(async () => { | |
// require blockchain-core dependencies | |
const IpfsApi = require('ipfs-api'); | |
const Web3 = require('web3'); | |
// require blockchain-core | |
const { Ipfs, createDefaultRuntime, ModificationType, PropertyType } = require('@evan.network/blockchain-core'); | |
const accountId = '0xD5c4b30B3c80E01B7eF3E7067Ce13733Df11d8A1'; | |
// configure the runtime object | |
const runtimeConfig = { |
{ | |
"name": "validatortest", | |
"engine": { | |
"authorityRound": { | |
"params": { | |
"stepDuration": "3", | |
"validators": { | |
"multi": { | |
"0": { | |
"list": [ |
//! Copyright 2017 Peter Czaban, Parity Technologies Ltd. | |
//! | |
//! 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, |