Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
github.com/DecodedCo/blockchain-vote
brew install docker
)brew install golang
)~/dev/go
.mkdir -p src/github.com/
.../go/src/github.com
add the hyperledger Go code:mkdir hyperledger
cd hyperledger
git clone git@github.com:hyperledger/fabric.git
cd fabric
git fetch
git checkout v0.6
~/.zshrc
file add export GOPATH=$HOME/dev/go
or whatever that path is.In your dev directory. Assumed for this guide: ~/dev
git clone git@github.com:DecodedCo/blockchain-vote.git
cd blockchain-vote
Make sure you have Docker running on your mac, then:
cd ~/dev/blockchain-vote/docker-compose
docker pull hyperledger/fabric-peer:latest
docker pull hyperledger/fabric-membersrvc:latest
Wait a few moments then
cd one-peer-one-ca
docker-compose up
Open up a new shell, then:
cd ~/dev/blockchain-vote/golang-chaincode
go build .
Wait a moment then:
CORE_CHAINCODE_ID_NAME=DecodedBlockChain CORE_PEER_ADDRESS=0.0.0.0:7051 ./golang-chaincode
Open up another new shell, then:
cd ~/dev/blockchain-vote/node-server
npm install
npm start
Open a web browser and navigate to localhost:3000
Open up a fourth shell, then:
cd ~/dev/blockchain-vote/docker-compose/one-peer-one-ca
docker-compose stop
That stops the process and preserves the state of the blockchain. To delete the blockchain, run:
docker rm -f $(docker ps -aq)
The Go chaincode should stop running when the docker container stops. If not, the Go and Node processes can be stopped using ctrl+C
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.