-
Notifications
You must be signed in to change notification settings - Fork 130
[PAN-2340] simple permissioning smart contract #1035
[PAN-2340] simple permissioning smart contract #1035
Conversation
…-simple-permissioning-smart-contract
…-simple-permissioning-smart-contract
…-simple-permissioning-smart-contract
``` | ||
npm install truffle-hdwallet-provider | ||
``` | ||
## To run the pet shop example: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pet shop
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
commented code
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
commented code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
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