Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

[PAN-2340] simple permissioning smart contract #1035

Merged
merged 20 commits into from
Mar 5, 2019
Merged

[PAN-2340] simple permissioning smart contract #1035

merged 20 commits into from
Mar 5, 2019

Conversation

macfarla
Copy link
Contributor

@macfarla macfarla commented Mar 4, 2019

PR description

Simple smart contract for node permissioning - smart contract to add node, remove node, check if connection between nodes is allowed

Fixed Issue(s)

fixes #PAN-2340

```
npm install truffle-hdwallet-provider
```
## To run the pet shop example:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pet shop

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

whitelistIpv4[key] = zeros;
}
function computeKeyIpv6(bytes32 enodeHigh, bytes32 enodeLow, bytes16 enodeIpv6, uint16 enodePort) public pure returns (bytes memory) {
//return abi.encodePacked(enodeHigh, enodeLow, enodeIpv4, enodePort);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

commented code

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

return abi.encode(enodeHigh, enodeLow, enodeIpv6, enodePort);
}
function computeKeyIpv4(bytes32 enodeHigh, bytes32 enodeLow, bytes4 enodeIpv4, uint16 enodePort) public pure returns (bytes memory) {
//return abi.encodePacked(enodeHigh, enodeLow, enodeIpv4, enodePort);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

commented code

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@macfarla macfarla merged commit 89b78c6 into PegaSysEng:master Mar 5, 2019
@macfarla macfarla deleted the pan-2340-simple-permissioning-smart-contract branch March 5, 2019 02:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants