New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

github.com/maticairo/unlam-blockchain

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/maticairo/unlam-blockchain

  • v0.0.0-20200822193559-45bcaf362985
  • Source
  • Go
  • Socket score

Version published
Created
Source

UNLaM Criptografía - Blockchain

Objetivo

Este proyecto fue desarrollado por alumnos de la Universidad Nacional de La Matanza, en el marco de la cátedra de Criptografía, y pretende demostrar de manera simple la implementación de una Blockchain para validar y securizar transacciones entre Wallets.

La herramienta provee una interfaz de linea de comandos a través de la cual se puede simular y ver la generación de una blockchain.

Comandos

IntegrantesParametros
createwallet-
createblockchain-ADDRESS
listaddresses-
send-FROM -TO -AMOUNT
printchain-
getbalance-ADDRESS

Ejemplos

createwallet

Input:

$ go run main.go createwallet

Output:

New address is: 1C6yMEC88e5UXPn59upTHQsmJCYAZE3SLy
createblockchain

Input:

$ go run main.go createblockchain -address 1C6yMEC88e5UXPn59upTHQsmJCYAZE3SLy

Output:

000337396060da20d4d5ae4584c64415df6779db937a450fb613cd749e29b79a
Genesis created
Finished!
printchain

Input:

$ go run main.go printchain

Output:

Prev. hash:
Hash: 000337396060da20d4d5ae4584c64415df6779db937a450fb613cd749e29b79a
PoW: true
--- Transaction 1a8a316b7e74eeb859b143aaa4f42b52206e44cab9f0b8e396c8f7246c73361b:
     Input 0:
       TXID:
       Out:       -1
       Signature:
       PubKey:    4669727374205472616e73616374696f6e2066726f6d2047656e65736973
     Output 0:
       Value:  100
       Script: 79ca80415dac51ee07cfae8fdc243bd5f0df38a4
send

Input:

$ go run main.go send -from 1C6yMEC88e5UXPn59upTHQsmJCYAZE3SLy -to 1MFkBG8sJjJE8hBww5U5HNDV6BW8YB9bXC -amount 30

Output:

000fd826f4c05d0490d1ccc43a28248bae12554febadb0b0ca67ec200aa4ecda
Success!
getbalance

Input:

$ go run main.go getbalance -address 1C6yMEC88e5UXPn59upTHQsmJCYAZE3SLy

Output:

Balance of 1C6yMEC88e5UXPn59upTHQsmJCYAZE3SLy: 70
listaddresses

Input:

$ go run main.go listaddresses

Output:

1MFkBG8sJjJE8hBww5U5HNDV6BW8YB9bXC
1C6yMEC88e5UXPn59upTHQsmJCYAZE3SLy

Equipo

Integrantes
Cairo, Matías
De Rito, Micaela
Foglia, Julieta
Reynoso, Thomas
Perez, Lautaro

FAQs

Package last updated on 22 Aug 2020

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc