Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuafernandes committed Aug 29, 2023
1 parent fbbc4cf commit cc94a8f
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 28 deletions.
15 changes: 0 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,18 +104,3 @@ the container's user 1000 to your local user id so permissions will work like so
image: some:img
user: $(id -u):$(id -g)
```


# TODO

1. Besu _ concurrent_tx
```
jfernandes@xps:~/workspace/protocols/quorum-dev-quickstart/besu-test-network/smart_contracts(master)$ node scripts/privacy/concurrent_private_txs.js
TypeError: Tx is not a constructor
at sendPMT (/home/jfernandes/workspace/protocols/quorum-dev-quickstart/besu-test-network/smart_contracts/scripts/privacy/concurrent_private_txs.js:60:14)
at /home/jfernandes/workspace/protocols/quorum-dev-quickstart/besu-test-network/smart_contracts/scripts/privacy/concurrent_private_txs.js:114:18
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
This example requires ONCHAIN privacy to be DISABLED.
Check config for ONCHAIN privacy groups.
```
2 changes: 1 addition & 1 deletion files/besu/smart_contracts/scripts/keys.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module.exports = {
publicKey: "1iTZde/ndBHvzhcl7V68x44Vx7pl8nwx9LqnM/AfJUg=",
},
},
quorum: {
besu: {
rpcnode: {
name: "rpcnode",
url: "http://127.0.0.1:8545",
Expand Down
4 changes: 2 additions & 2 deletions files/besu/smart_contracts/scripts/public/eth_tx.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ const fs = require('fs-extra');
const Web3 = require('web3');

// member1 details
const { tessera, quorum, accounts } = require("../keys.js");
const host = quorum.rpcnode.url;
const { tessera, besu, accounts } = require("../keys.js");
const host = besu.rpcnode.url;

async function main(){
const web3 = new Web3(host);
Expand Down
6 changes: 3 additions & 3 deletions files/besu/smart_contracts/scripts/public/public_tx.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ const fs = require("fs-extra");
const Web3 = require("web3");

// member1 details
const { tessera, quorum } = require("../keys.js");
const host = quorum.rpcnode.url;
const accountAddress = quorum.rpcnode.accountAddress;
const { tessera, besu } = require("../keys.js");
const host = besu.rpcnode.url;
const accountAddress = besu.rpcnode.accountAddress;

// abi and bytecode generated from simplestorage.sol:
// > solcjs --bin --abi simplestorage.sol
Expand Down
6 changes: 3 additions & 3 deletions files/besu/smart_contracts/scripts/public/public_tx_ethers.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ const fs = require('fs-extra');
var ethers = require('ethers');

// member1 details
const { tessera, quorum } = require("../keys.js");
const host = quorum.rpcnode.url;
const accountAddress = quorum.rpcnode.accountAddress;
const { tessera, besu } = require("../keys.js");
const host = besu.rpcnode.url;
const accountAddress = besu.rpcnode.accountAddress;

// abi and bytecode generated from simplestorage.sol:
// > solcjs --bin --abi simplestorage.sol
Expand Down
2 changes: 1 addition & 1 deletion files/goquorum/smart_contracts/scripts/privacy/eth_tx.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const fs = require('fs-extra');
const Web3 = require('web3');

// member1 details
const { tessera, quorum, accounts } = require("./keys.js");
const { tessera, quorum, accounts } = require("../keys.js");
const host = quorum.member1.url;

async function main(){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const Web3 = require("web3");
const Web3Quorum = require("web3js-quorum");

// WARNING: the keys here are demo purposes ONLY. Please use a tool like EthSigner for production, rather than hard coding private keys
const { tessera, quorum } = require("./keys.js");
const { tessera, quorum } = require("../keys.js");
const chainId = 1337;
const privacyFlag = 0;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const fs = require("fs-extra");
const Web3 = require("web3");

// member1 details
const { tessera, quorum } = require("./keys.js");
const { tessera, quorum } = require("../keys.js");
const host = quorum.member1.url;
const accountAddress = quorum.member1.accountAddress;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const fs = require("fs-extra");
var ethers = require("ethers");

// member1 details
const { tessera, quorum } = require("./keys.js");
const { tessera, quorum } = require("../keys.js");
const host = quorum.member1.url;
const accountAddress = quorum.member1.accountAddress;

Expand Down

0 comments on commit cc94a8f

Please sign in to comment.